Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. guava-tests/test/com/google/common/math/StatsTest.java

            .of(INTEGER_MANY_VALUES_MEAN);
        assertThat(Stats.meanOf(Ints.toArray(INTEGER_MANY_VALUES)))
            .isWithin(ALLOWED_ERROR * INTEGER_MANY_VALUES_MEAN)
            .of(INTEGER_MANY_VALUES_MEAN);
        assertThat(Stats.meanOf(LONG_MANY_VALUES))
            .isWithin(ALLOWED_ERROR * LONG_MANY_VALUES_MEAN)
            .of(LONG_MANY_VALUES_MEAN);
        assertThat(Stats.meanOf(Longs.toArray(LONG_MANY_VALUES)))
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateRequest.java

                        EncryptionNegotiateContext.CIPHER_AES128_GCM, EncryptionNegotiateContext.CIPHER_AES128_CCM
                    }));
                }
            }
    
            this.negotiateContexts = negoContexts.toArray(new NegotiateContextRequest[negoContexts.size()]);
        }
    
    
        /**
         * @return the securityMode
         */
        public int getSecurityMode () {
            return this.securityMode;
        }
    
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 7.5K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/google/DerivedGoogleCollectionGenerators.java

          int i = 0;
          for (Entry<K, V> entry : originalEntries) {
            entries.add(mapEntry(entry.getKey(), valuesArray[i++]));
          }
    
          return mapGenerator.create(entries.toArray()).values();
        }
    
        @Override
        public V[] createArray(int length) {
          V[] vs =
              ((TestBiMapGenerator<K, V>) mapGenerator.getInnerGenerator()).createValueArray(length);
          return vs;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/HtmlExtractor.java

                    for (int i = 0; i < nodeList.size(); i++) {
                        final Node node = nodeList.get(i);
                        strList.add(node.getTextContent());
                    }
                    return strList.toArray(n -> new String[n]);
                case NODE:
                    final Node node = (Node) xObj.value();
                    return new String[] { node.getTextContent() };
                default:
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  5. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 17:02:53 UTC 2023
    - 29.9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

        if (!q.isIntact()) {
          fail("State " + Arrays.toString(q.toArray()));
        }
      }
    
      private static void assertIntactUsingSeed(long seed, MinMaxPriorityQueue<?> q) {
        if (!q.isIntact()) {
          fail("Using seed " + seed + ". State " + Arrays.toString(q.toArray()));
        }
      }
    
      private static void assertIntactUsingStartedWith(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/primitives/Floats.java

       * @since 1.0 (parameter was {@code Collection<Float>} before 12.0)
       */
      public static float[] toArray(Collection<? extends Number> collection) {
        if (collection instanceof FloatArrayAsList) {
          return ((FloatArrayAsList) collection).toFloatArray();
        }
    
        Object[] boxedArray = collection.toArray();
        int len = boxedArray.length;
        float[] array = new float[len];
        for (int i = 0; i < len; i++) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 15:52:18 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  8. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 15:52:18 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  9. guava/src/com/google/common/primitives/Floats.java

       * @since 1.0 (parameter was {@code Collection<Float>} before 12.0)
       */
      public static float[] toArray(Collection<? extends Number> collection) {
        if (collection instanceof FloatArrayAsList) {
          return ((FloatArrayAsList) collection).toFloatArray();
        }
    
        Object[] boxedArray = collection.toArray();
        int len = boxedArray.length;
        float[] array = new float[len];
        for (int i = 0; i < len; i++) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 15:52:18 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ImmutableSortedSet.java

          if (!original.isPartialView()) {
            return original;
          }
        }
        @SuppressWarnings("unchecked") // elements only contains E's; it's safe.
        E[] array = (E[]) Iterables.toArray(elements);
        return construct(comparator, array.length, array);
      }
    
      /**
       * Returns an immutable sorted set containing the given elements sorted by the given {@code
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 39.1K bytes
    - Viewed (0)
Back to top