Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 51 for Longs (0.03 sec)

  1. guava/src/com/google/common/hash/AbstractStreamingHasher.java

       */
      protected void processRemaining(ByteBuffer bb) {
        Java8Compatibility.position(bb, bb.limit()); // move at the end
        Java8Compatibility.limit(bb, chunkSize + 7); // get ready to pad with longs
        while (bb.position() < chunkSize) {
          bb.putLong(0);
        }
        Java8Compatibility.limit(bb, chunkSize);
        Java8Compatibility.flip(bb);
        process(bb);
      }
    
      @Override
      @CanIgnoreReturnValue
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/math/StatsAccumulator.java

        }
      }
    
      /**
       * Adds the given values to the dataset.
       *
       * @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);
        }
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Apr 14 16:36:11 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/primitives/ImmutableLongArray.java

     *       #toString} behavior you expect.
     *   <li>Offers useful operations beyond just {@code get} and {@code length}, so you don't have to
     *       hunt through classes like {@link Arrays} and {@link Longs} for them.
     *   <li>Supports a copy-free {@link #subArray} view, so methods that accept this type don't need to
     *       add overloads that accept start and end indexes.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 22K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/primitives/DoublesTest.java

        List<Long> longs = Arrays.asList(0L, 1L, 2L);
        List<Double> doubles = Arrays.asList(0.0, 1.0, 2.0);
    
        assertThat(Doubles.toArray(bytes)).isEqualTo(array);
        assertThat(Doubles.toArray(shorts)).isEqualTo(array);
        assertThat(Doubles.toArray(ints)).isEqualTo(array);
        assertThat(Doubles.toArray(floats)).isEqualTo(array);
        assertThat(Doubles.toArray(longs)).isEqualTo(array);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 30.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/math/Quantiles.java

              "Quantile indexes must be between 0 and the scale, which is " + scale);
        }
      }
    
      private static double[] longsToDoubles(long[] longs) {
        int len = longs.length;
        double[] doubles = new double[len];
        for (int i = 0; i < len; i++) {
          doubles[i] = longs[i];
        }
        return doubles;
      }
    
      private static double[] intsToDoubles(int[] ints) {
        int len = ints.length;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 30.1K bytes
    - Viewed (0)
  6. guava/src/com/google/common/math/LongMath.java

     * IntMath} and {@link BigIntegerMath} respectively. For other common operations on {@code long}
     * values, see {@link com.google.common.primitives.Longs}.
     *
     * @author Louis Wasserman
     * @since 11.0
     */
    @GwtCompatible
    public final class LongMath {
      @VisibleForTesting static final long MAX_SIGNED_POWER_OF_TWO = 1L << (Long.SIZE - 2);
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Aug 29 16:20:07 UTC 2025
    - 46.8K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/primitives/IntsTest.java

        List<Long> longs = Arrays.asList(0L, 1L, 2L);
        List<Double> doubles = Arrays.asList(0.0, 1.0, 2.0);
    
        assertThat(Ints.toArray(bytes)).isEqualTo(array);
        assertThat(Ints.toArray(shorts)).isEqualTo(array);
        assertThat(Ints.toArray(ints)).isEqualTo(array);
        assertThat(Ints.toArray(floats)).isEqualTo(array);
        assertThat(Ints.toArray(longs)).isEqualTo(array);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 29.2K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/math/StatsAccumulatorTest.java

    import static org.junit.Assert.assertThrows;
    
    import com.google.common.collect.ImmutableList;
    import com.google.common.math.StatsTesting.ManyValues;
    import com.google.common.primitives.Doubles;
    import com.google.common.primitives.Longs;
    import junit.framework.TestCase;
    import org.jspecify.annotations.NullUnmarked;
    
    /**
     * Tests for {@link StatsAccumulator}. This tests the stats methods for instances built with {@link
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/hash/BloomFilter.java

        // Serial form:
        // 1 signed byte for the strategy
        // 1 unsigned byte for the number of hash functions
        // 1 big endian int, the number of longs in our bitset
        // N big endian longs of our bitset
        DataOutputStream dout = new DataOutputStream(out);
        dout.writeByte(SignedBytes.checkedCast(strategy.ordinal()));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 31 13:15:26 UTC 2025
    - 26.9K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/primitives/DoublesTest.java

        List<Long> longs = Arrays.asList(0L, 1L, 2L);
        List<Double> doubles = Arrays.asList(0.0, 1.0, 2.0);
    
        assertThat(Doubles.toArray(bytes)).isEqualTo(array);
        assertThat(Doubles.toArray(shorts)).isEqualTo(array);
        assertThat(Doubles.toArray(ints)).isEqualTo(array);
        assertThat(Doubles.toArray(floats)).isEqualTo(array);
        assertThat(Doubles.toArray(longs)).isEqualTo(array);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 30.9K bytes
    - Viewed (0)
Back to top