Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 186 for longs (0.02 sec)

  1. android/guava/src/com/google/common/primitives/Longs.java

       * value).hashCode()}.
       *
       * <p>This method always return the value specified by {@link Long#hashCode()} in java, which
       * might be different from {@code ((Long) value).hashCode()} in GWT because {@link
       * Long#hashCode()} in GWT does not obey the JRE contract.
       *
       * <p><b>Java 8+ users:</b> use {@link Long#hashCode(long)} instead.
       *
       * @param value a primitive {@code long} value
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/primitives/ImmutableLongArray.java

        return new ImmutableLongArray(new long[] {e0, e1, e2, e3});
      }
    
      /** Returns an immutable array containing the given values, in order. */
      public static ImmutableLongArray of(long e0, long e1, long e2, long e3, long e4) {
        return new ImmutableLongArray(new long[] {e0, e1, e2, e3, e4});
      }
    
      /** Returns an immutable array containing the given values, in order. */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  3. guava/src/com/google/common/math/Stats.java

       *
       * @param values a series of values, which will be converted to {@code double} values (this may
       *     cause loss of precision for longs of magnitude over 2^53 (slightly over 9e15))
       */
      public static Stats of(long... values) {
        StatsAccumulator accumulator = new StatsAccumulator();
        accumulator.addAll(values);
        return accumulator.snapshot();
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/math/StatsAccumulator.java

       *
       * @param values a series of values, which will be converted to {@code double} values (this may
       *     cause loss of precision for longs of magnitude over 2^53 (slightly over 9e15))
       */
      public void addAll(long... values) {
        for (long value : values) {
          add(value);
        }
      }
    
      /**
       * Adds the given values to the dataset. The stream will be completely consumed by this method.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/math/StatsTest.java

            .of(LONG_MANY_VALUES_SUM_OF_SQUARES_OF_DELTAS / LONG_MANY_VALUES_COUNT);
        assertThat(LARGE_LONG_VALUES_STATS.populationVariance())
            .isWithin(ALLOWED_ERROR * Long.MAX_VALUE * Long.MAX_VALUE)
            .of(LARGE_LONG_VALUES_POPULATION_VARIANCE);
      }
    
      public void testPopulationStandardDeviation() {
        assertThrows(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/math/StatsAccumulatorTest.java

      }
    
      public void testAddAllPrimitiveLongStream() {
        StatsAccumulator accumulator = new StatsAccumulator();
        accumulator.addAll(megaPrimitiveDoubleStreamPart1().mapToLong(x -> (long) x));
        accumulator.addAll(megaPrimitiveDoubleStreamPart2().mapToLong(x -> (long) x));
        assertThat(accumulator.count()).isEqualTo(MEGA_STREAM_COUNT);
        assertThat(accumulator.mean()).isWithin(ALLOWED_ERROR * MEGA_STREAM_COUNT).of(MEGA_STREAM_MEAN);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/math/StatsAccumulatorTest.java

      }
    
      public void testAddAllPrimitiveLongStream() {
        StatsAccumulator accumulator = new StatsAccumulator();
        accumulator.addAll(megaPrimitiveDoubleStreamPart1().mapToLong(x -> (long) x));
        accumulator.addAll(megaPrimitiveDoubleStreamPart2().mapToLong(x -> (long) x));
        assertThat(accumulator.count()).isEqualTo(MEGA_STREAM_COUNT);
        assertThat(accumulator.mean()).isWithin(ALLOWED_ERROR * MEGA_STREAM_COUNT).of(MEGA_STREAM_MEAN);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/hash/BloomFilter.java

       * {@code expectedInsertions} that was used when constructing the filter.
       *
       * @since 22.0
       */
      public long approximateElementCount() {
        long bitSize = bits.bitSize();
        long bitCount = bits.bitCount();
    
        /**
         * Each insertion is expected to reduce the # of clear bits by a factor of
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 26.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/primitives/Ints.java

       *     Character.MAX_RADIX}
       * @throws NullPointerException if {@code string} is {@code null}
       * @since 19.0
       */
      @CheckForNull
      public static Integer tryParse(String string, int radix) {
        Long result = Longs.tryParse(string, radix);
        if (result == null || result.longValue() != result.intValue()) {
          return null;
        } else {
          return result.intValue();
        }
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 31K bytes
    - Viewed (0)
  10. compat/maven-embedder/src/main/java/org/apache/maven/cli/transfer/FileSizeFormat.java

            }
        }
    
        public String formatProgress(long progressedSize, long size) {
            StringBuilder sb = new StringBuilder();
            formatProgress(sb, progressedSize, size);
            return sb.toString();
        }
    
        public void formatProgress(StringBuilder builder, long progressedSize, long size) {
            if (progressedSize < 0L) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.5K bytes
    - Viewed (0)
Back to top