Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 251 - 260 of 417 for ToArray (0.12 seconds)

  1. guava-testlib/src/com/google/common/collect/testing/MinimalSet.java

        List<E> setContents = new ArrayList<>();
        for (E e : contents) {
          if (!setContents.contains(e)) {
            setContents.add(e);
          }
        }
        return new MinimalSet<>(type, setContents.toArray(emptyArrayForContents));
      }
    
      private MinimalSet(Class<? super @NonNull E> type, E... contents) {
        super(type, true, contents);
      }
    
      /*
       * equals() and hashCode() are more specific in the Set contract.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 2.8K bytes
    - Click Count (0)
  2. guava-testlib/src/com/google/common/collect/testing/testers/SetHashCodeTester.java

        int expectedHashCode = 0;
        for (E element : elements) {
          expectedHashCode += (element == null) ? 0 : element.hashCode();
        }
    
        elements.add(null);
        collection = getSubjectGenerator().create(elements.toArray());
        assertEquals(
            "A Set's hashCode() should be the sum of those of its elements (with "
                + "a null element counting as having a hash of zero).",
            expectedHashCode,
            getSet().hashCode());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Aug 11 19:31:30 GMT 2025
    - 3.1K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/cache/EmptyCachesTest.java

      public void testKeySet_nullToArray() {
        for (LoadingCache<Object, Object> cache : caches()) {
          Set<Object> keys = cache.asMap().keySet();
          assertThrows(NullPointerException.class, () -> keys.toArray((Object[]) null));
          checkEmpty(cache);
        }
      }
    
      public void testKeySet_addNotSupported() {
        for (LoadingCache<Object, Object> cache : caches()) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 11.6K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/collect/IterablesTest.java

      }
    
      @GwtIncompatible // Iterables.toArray(Iterable, Class)
      public void testToArrayEmpty() {
        Iterable<String> iterable = emptyList();
        String[] array = Iterables.toArray(iterable, String.class);
        assertThat(array).isEmpty();
      }
    
      @GwtIncompatible // Iterables.toArray(Iterable, Class)
      public void testToArraySingleton() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 47.5K bytes
    - Click Count (0)
  5. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/CleanArgument.java

            }
    
            int cleanedSz = cleaned.size();
    
            String[] cleanArgs;
    
            if (cleanedSz == 0) {
                cleanArgs = args;
            } else {
                cleanArgs = cleaned.toArray(new String[0]);
            }
    
            return cleanArgs;
        }
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Mar 28 12:11:25 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/opensearch/config/cbean/bs/BsCrawlingInfoParamCB.java

                _conditionAggregation.getAggregationBuilderList().forEach(builder::addAggregation);
            }
    
            if (_specification != null) {
                builder.setFetchSource(_specification.columnList.toArray(new String[_specification.columnList.size()]), null);
            }
    
            return builder;
        }
    
        // ===================================================================================
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 15 06:53:53 GMT 2025
    - 6.9K bytes
    - Click Count (0)
  7. guava-testlib/src/com/google/common/collect/testing/MinimalIterable.java

       */
      @SuppressWarnings("unchecked") // Es come in, Es go out
      public static <E extends @Nullable Object> MinimalIterable<E> from(Collection<E> elements) {
        return (MinimalIterable) of(elements.toArray());
      }
    
      private @Nullable Iterator<E> iterator;
    
      private MinimalIterable(Iterator<E> iterator) {
        this.iterator = iterator;
      }
    
      @Override
      public Iterator<E> iterator() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 3.1K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/primitives/BooleansTest.java

        assertThat(Booleans.toArray(none)).isEqualTo(EMPTY);
    
        List<Boolean> one = Arrays.asList(false);
        assertThat(Booleans.toArray(one)).isEqualTo(ARRAY_FALSE);
    
        boolean[] array = {false, false, true};
    
        List<Boolean> three = Arrays.asList(false, false, true);
        assertThat(Booleans.toArray(three)).isEqualTo(array);
    
        assertThat(Booleans.toArray(Booleans.asList(array))).isEqualTo(array);
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 01:43:32 GMT 2026
    - 25.3K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/opensearch/config/cbean/bs/BsRoleTypeCB.java

                _conditionAggregation.getAggregationBuilderList().forEach(builder::addAggregation);
            }
    
            if (_specification != null) {
                builder.setFetchSource(_specification.columnList.toArray(new String[_specification.columnList.size()]), null);
            }
    
            return builder;
        }
    
        // ===================================================================================
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 15 06:53:53 GMT 2025
    - 6.9K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/opensearch/log/cbean/bs/BsClickLogCB.java

                _conditionAggregation.getAggregationBuilderList().forEach(builder::addAggregation);
            }
    
            if (_specification != null) {
                builder.setFetchSource(_specification.columnList.toArray(new String[_specification.columnList.size()]), null);
            }
    
            return builder;
        }
    
        // ===================================================================================
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 15 06:53:53 GMT 2025
    - 7K bytes
    - Click Count (0)
Back to Top