Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 941 - 950 of 996 for useEmpty (0.19 seconds)

  1. android/guava-tests/test/com/google/common/collect/ImmutableListTest.java

        ImmutableList<String> result = builder.build();
    
        /*
         * Maybe it rejects all elements, or maybe it adds "a" before failing.
         * Either way is fine with us.
         */
        if (result.isEmpty()) {
          return;
        }
        assertTrue(ImmutableList.of("a").equals(result));
        assertEquals(1, result.size());
      }
    
      public void testBuilderAddCollectionHandlesNulls() {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 24.2K bytes
    - Click Count (0)
  2. compat/maven-embedder/src/main/java/org/fusesource/jansi/Ansi.java

            flushAttributes();
            return doAppendEscapeSequence(command, options);
        }
    
        private void flushAttributes() {
            if (attributeOptions.isEmpty()) {
                return;
            }
            if (attributeOptions.size() == 1 && attributeOptions.get(0) == 0) {
                builder.append(FIRST_ESC_CHAR);
                builder.append(SECOND_ESC_CHAR);
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Sat Apr 05 11:52:05 GMT 2025
    - 23.1K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/collect/ImmutableCollection.java

       * copying anything. The exact circumstances under which the copy is performed are undefined and
       * subject to change.
       *
       * @since 2.0
       */
      public ImmutableList<E> asList() {
        return isEmpty() ? ImmutableList.of() : ImmutableList.asImmutableList(toArray());
      }
    
      /**
       * Returns {@code true} if this immutable collection's implementation contains references to
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 21.4K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/suggest/index/SuggestIndexer.java

                            break;
                        }
                        queryLogs.add(queryLog);
                        queryLog = queryLogReader.read();
                        if ((queryLog == null && !queryLogs.isEmpty()) || queryLogs.size() >= docPerReq) {
                            final SuggestIndexResponse res = indexFromQueryLog(queryLogs.toArray(new QueryLog[queryLogs.size()]));
                            errors.addAll(res.getErrors());
    Created: Sat Dec 20 13:04:59 GMT 2025
    - Last Modified: Mon Nov 24 03:40:05 GMT 2025
    - 34.4K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/collect/ImmutableList.java

        return listIterator(0);
      }
    
      @SuppressWarnings("unchecked")
      @Override
      public UnmodifiableListIterator<E> listIterator(int index) {
        checkPositionIndex(index, size());
        if (isEmpty()) {
          return (UnmodifiableListIterator<E>) EMPTY_ITR;
        } else {
          return new Itr<E>(this, index);
        }
      }
    
      /** A singleton implementation of iterator() for the empty ImmutableList. */
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 23 17:50:58 GMT 2025
    - 27.5K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/primitives/Chars.java

          this.array = array;
          this.start = start;
          this.end = end;
        }
    
        @Override
        public int size() {
          return end - start;
        }
    
        @Override
        public boolean isEmpty() {
          return false;
        }
    
        @Override
        public Character get(int index) {
          checkElementIndex(index, size());
          return array[start + index];
        }
    
        @Override
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 24.2K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/primitives/Shorts.java

          this.array = array;
          this.start = start;
          this.end = end;
        }
    
        @Override
        public int size() {
          return end - start;
        }
    
        @Override
        public boolean isEmpty() {
          return false;
        }
    
        @Override
        public Short get(int index) {
          checkElementIndex(index, size());
          return array[start + index];
        }
    
        @Override
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Oct 22 18:14:49 GMT 2025
    - 25.7K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/primitives/IntsTest.java

        assertThrows(IllegalArgumentException.class, () -> Ints.ensureCapacity(ARRAY1, 1, -1));
      }
    
      public void testJoin() {
        assertThat(Ints.join(",", EMPTY)).isEmpty();
        assertThat(Ints.join(",", ARRAY1)).isEqualTo("1");
        assertThat(Ints.join(",", (int) 1, (int) 2)).isEqualTo("1,2");
        assertThat(Ints.join("", (int) 1, (int) 2, (int) 3)).isEqualTo("123");
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 20:45:32 GMT 2025
    - 29.3K bytes
    - Click Count (0)
  9. guava/src/com/google/common/primitives/Shorts.java

          this.array = array;
          this.start = start;
          this.end = end;
        }
    
        @Override
        public int size() {
          return end - start;
        }
    
        @Override
        public boolean isEmpty() {
          return false;
        }
    
        @Override
        public Short get(int index) {
          checkElementIndex(index, size());
          return array[start + index];
        }
    
        @Override
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Oct 22 18:14:49 GMT 2025
    - 25.7K bytes
    - Click Count (0)
  10. cmd/config-current.go

    		globalEtcdClient, err = etcd.New(etcdCfg)
    		if err != nil {
    			configLogIf(ctx, fmt.Errorf("Unable to initialize etcd config: %w", err))
    		}
    
    		if len(globalDomainNames) != 0 && !globalDomainIPs.IsEmpty() && globalEtcdClient != nil {
    			if globalDNSConfig != nil {
    				// if global DNS is already configured, indicate with a warning, in case
    				// users are confused.
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 28.5K bytes
    - Click Count (0)
Back to Top