Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 320 for ToArray (0.34 sec)

  1. guava/src/com/google/common/primitives/Booleans.java

       * @throws NullPointerException if {@code collection} or any of its elements is null
       */
      public static boolean[] toArray(Collection<Boolean> collection) {
        if (collection instanceof BooleanArrayAsList) {
          return ((BooleanArrayAsList) collection).toBooleanArray();
        }
    
        Object[] boxedArray = collection.toArray();
        int len = boxedArray.length;
        boolean[] array = new boolean[len];
        for (int i = 0; i < len; i++) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ImmutableSet.java

        }
    
        if (elements.isEmpty()) {
          // We avoid allocating anything.
          return of();
        }
        // Collection<E>.toArray() is required to contain only E instances, and all we do is read them.
        // TODO(cpovirk): Consider using Object[] anyway.
        E[] array = (E[]) elements.toArray();
        /*
         * For a Set, we guess that it contains no duplicates. That's just a guess for purpose of
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 35.2K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/opensearch/config/cbean/bs/BsAccessTokenCB.java

                _conditionAggregation.getAggregationBuilderList().forEach(builder::addAggregation);
            }
    
            if (_specification != null) {
                builder.setFetchSource(_specification.columnList.toArray(new String[_specification.columnList.size()]), null);
            }
    
            return builder;
        }
    
        // ===================================================================================
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Mar 15 06:53:53 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/opensearch/config/cbean/bs/BsFailureUrlCB.java

                _conditionAggregation.getAggregationBuilderList().forEach(builder::addAggregation);
            }
    
            if (_specification != null) {
                builder.setFetchSource(_specification.columnList.toArray(new String[_specification.columnList.size()]), null);
            }
    
            return builder;
        }
    
        // ===================================================================================
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Mar 15 06:53:53 UTC 2025
    - 7K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/opensearch/config/cbean/bs/BsRelatedContentCB.java

                _conditionAggregation.getAggregationBuilderList().forEach(builder::addAggregation);
            }
    
            if (_specification != null) {
                builder.setFetchSource(_specification.columnList.toArray(new String[_specification.columnList.size()]), null);
            }
    
            return builder;
        }
    
        // ===================================================================================
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Mar 15 06:53:53 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/CollectionBenchmarkSampleData.java

          Element candidate = newElement();
          if (!elementsInSet.contains(candidate)) {
            queryList.add(candidate);
          }
        }
        shuffle(queryList, random);
        return queryList.toArray(new Element[0]);
      }
    
      private Set<Element> createData() {
        Set<Element> set = Sets.newHashSetWithExpectedSize(size);
        while (set.size() < size) {
          set.add(newElement());
        }
        return set;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/util/DocList.java

         */
        @Override
        public String toString() {
            return "DocList [contentSize=" + contentSize + ", processingTime=" + processingTime + ", elementData="
                    + Arrays.toString(toArray(new Map[size()])) + "]";
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/helper/PluginHelper.java

                                }
                            } else {
                                list.addAll(processRepository(key, url));
                            }
                        }
                        return list.toArray(new Artifact[list.size()]);
                    }
                });
    
        /**
         * Default constructor for PluginHelper.
         * Initializes the plugin helper with default settings.
         */
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/math/StatsAccumulatorTest.java

      public void testVerifyMegaStreamHalves() {
        assertThat(
                concat(megaPrimitiveDoubleStreamPart1(), megaPrimitiveDoubleStreamPart2())
                    .sorted()
                    .toArray())
            .isEqualTo(megaPrimitiveDoubleStream().toArray());
      }
    
      public void testAddAllPrimitiveDoubleStream() {
        StatsAccumulator accumulator = new StatsAccumulator();
        accumulator.addAll(megaPrimitiveDoubleStreamPart1());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/OneSizeGenerator.java

        return generator.createArray(length);
      }
    
      @Override
      public T createTestSubject() {
        Collection<E> elements = getSampleElements(getCollectionSize().getNumElements());
        return generator.create(elements.toArray());
      }
    
      @Override
      public Collection<E> getSampleElements(int howMany) {
        SampleElements<E> samples = samples();
        List<E> allSampleElements =
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 2.5K bytes
    - Viewed (0)
Back to top