Search Options

Results per page
Sort
Preferred Languages
Advance

Results 291 - 300 of 384 for toArray (0.05 sec)

  1. guava/src/com/google/common/collect/Maps.java

        }
    
        @Override
        public @Nullable Object[] toArray() {
          // creating an ArrayList so filtering happens once
          return Lists.newArrayList(iterator()).toArray();
        }
    
        @Override
        @SuppressWarnings("nullness") // b/192354773 in our checker affects toArray declarations
        public <T extends @Nullable Object> T[] toArray(T[] array) {
          return Lists.newArrayList(iterator()).toArray(array);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Nov 17 22:50:48 UTC 2025
    - 163.5K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/collection/ArrayMap.java

                listTable[i] = null;
            }
            size = 0;
        }
    
        /**
         * Converts this map to an array.
         *
         * @return the array
         */
        public Object[] toArray() {
            final Object[] array = new Object[size];
            for (int i = 0; i < array.length; i++) {
                array[i] = getAt(i);
            }
            return array;
        }
    
        /**
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Nov 22 11:21:59 UTC 2025
    - 20.1K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/math/StatsTesting.java

          this.values = ImmutableList.copyOf(Doubles.asList(values));
        }
    
        ImmutableList<Double> asIterable() {
          return values;
        }
    
        double[] asArray() {
          return Doubles.toArray(values);
        }
    
        boolean hasAnyPositiveInfinity() {
          return Iterables.any(values, Predicates.equalTo(POSITIVE_INFINITY));
        }
    
        boolean hasAnyNegativeInfinity() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/TestsForSetsInJavaUtil.java

            .createTestSuite();
      }
    
      private static String[] dedupe(String[] elements) {
        Set<String> tmp = new LinkedHashSet<>();
        Collections.addAll(tmp, elements);
        return tmp.toArray(new String[0]);
      }
    
      static <T> Comparator<T> arbitraryNullFriendlyComparator() {
        return new NullFriendlyComparator<>();
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Feb 19 21:24:11 UTC 2025
    - 15K bytes
    - Viewed (0)
  5. guava/src/com/google/common/primitives/Doubles.java

       * @since 1.0 (parameter was {@code Collection<Double>} before 12.0)
       */
      public static double[] toArray(Collection<? extends Number> collection) {
        if (collection instanceof DoubleArrayAsList) {
          return ((DoubleArrayAsList) collection).toDoubleArray();
        }
    
        Object[] boxedArray = collection.toArray();
        int len = boxedArray.length;
        double[] array = new double[len];
        for (int i = 0; i < len; i++) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Oct 22 18:14:49 UTC 2025
    - 27.6K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/google/MultisetTestSuiteBuilder.java

            for (int i = 0; i < entry.getCount(); i++) {
              contents.add(entry.getElement());
            }
          }
          return ((Multiset<E>) gen.create(contents.toArray())).entrySet();
        }
    
        @SuppressWarnings("unchecked")
        @Override
        public Multiset.Entry<E>[] createArray(int length) {
          return (Multiset.Entry<E>[]) new Multiset.Entry<?>[length];
        }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/math/Quantiles.java

         * @throws IllegalArgumentException if {@code indexes} is empty
         */
        public ScaleAndIndexes indexes(Collection<Integer> indexes) {
          return new ScaleAndIndexes(scale, Ints.toArray(indexes));
        }
      }
    
      /**
       * Describes the point in a fluent API chain where the scale and a single quantile index (i.e. the
       * q and the k in the kth q-quantile) have been specified.
       *
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 30.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/primitives/Ints.java

       * @since 1.0 (parameter was {@code Collection<Integer>} before 12.0)
       */
      public static int[] toArray(Collection<? extends Number> collection) {
        if (collection instanceof IntArrayAsList) {
          return ((IntArrayAsList) collection).toIntArray();
        }
    
        Object[] boxedArray = collection.toArray();
        int len = boxedArray.length;
        int[] array = new int[len];
        for (int i = 0; i < len; i++) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Oct 22 18:14:49 UTC 2025
    - 31.3K bytes
    - Viewed (0)
  9. compat/maven-compat/src/main/java/org/apache/maven/toolchain/ToolchainManagerFactory.java

                            getDelegate().getToolchains(session.getSession(), type);
                    return toolchains.stream()
                            .map(ToolchainManagerFactory.this::getToolchainV3)
                            .toArray(ToolchainPrivate[]::new);
                } catch (org.apache.maven.api.services.ToolchainManagerException e) {
                    throw new MisconfiguredToolchainException(e.getMessage(), e);
                }
            }
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 31 10:58:52 UTC 2025
    - 11K bytes
    - Viewed (0)
  10. compat/maven-model-builder/src/test/java/org/apache/maven/model/interpolation/reflection/ReflectionValueExtractorTest.java

                return name;
            }
    
            public String getVersion() {
                return version;
            }
    
            public Dependency[] getDependenciesAsArray() {
                return getDependencies().toArray(new Dependency[0]);
            }
    
            public Map<String, Dependency> getDependenciesAsMap() {
                Map<String, Dependency> ret = new HashMap<>();
                for (Dependency dep : getDependencies()) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jan 10 07:09:12 UTC 2025
    - 16.9K bytes
    - Viewed (0)
Back to top