Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for putBoolean (0.19 sec)

  1. guava-tests/test/com/google/common/hash/FarmHashFingerprint64Test.java

        Hasher hasher = HASH_FN.newHasher();
        // Expected data is 0x0100010100000000
        hasher
            .putBoolean(true)
            .putBoolean(true)
            .putBoolean(false)
            .putBoolean(true)
            .putBoolean(false)
            .putBoolean(false)
            .putBoolean(false)
            .putBoolean(false);
        final long hashCode = hasher.hash().asLong();
    
        hasher = HASH_FN.newHasher();
        hasher
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Jul 19 14:00:24 GMT 2016
    - 6.2K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/hash/Fingerprint2011Test.java

        Hasher hasher = HASH_FN.newHasher();
        // Expected data is 0x0100010100000000
        hasher
            .putBoolean(true)
            .putBoolean(true)
            .putBoolean(false)
            .putBoolean(true)
            .putBoolean(false)
            .putBoolean(false)
            .putBoolean(false)
            .putBoolean(false);
        final long hashCode = hasher.hash().asLong();
    
        hasher = HASH_FN.newHasher();
        hasher
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Dec 29 14:55:25 GMT 2021
    - 7.6K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/hash/FarmHashFingerprint64Test.java

        Hasher hasher = HASH_FN.newHasher();
        // Expected data is 0x0100010100000000
        hasher
            .putBoolean(true)
            .putBoolean(true)
            .putBoolean(false)
            .putBoolean(true)
            .putBoolean(false)
            .putBoolean(false)
            .putBoolean(false)
            .putBoolean(false);
        final long hashCode = hasher.hash().asLong();
    
        hasher = HASH_FN.newHasher();
        hasher
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jun 26 15:56:47 GMT 2017
    - 6.2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/hash/Fingerprint2011Test.java

        Hasher hasher = HASH_FN.newHasher();
        // Expected data is 0x0100010100000000
        hasher
            .putBoolean(true)
            .putBoolean(true)
            .putBoolean(false)
            .putBoolean(true)
            .putBoolean(false)
            .putBoolean(false)
            .putBoolean(false)
            .putBoolean(false);
        final long hashCode = hasher.hash().asLong();
    
        hasher = HASH_FN.newHasher();
        hasher
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Dec 29 14:55:25 GMT 2021
    - 7.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/hash/AbstractHasher.java

     *
     * @author Dimitris Andreou
     */
    @ElementTypesAreNonnullByDefault
    abstract class AbstractHasher implements Hasher {
      @Override
      @CanIgnoreReturnValue
      public final Hasher putBoolean(boolean b) {
        return putByte(b ? (byte) 1 : (byte) 0);
      }
    
      @Override
      @CanIgnoreReturnValue
      public final Hasher putDouble(double d) {
        return putLong(Double.doubleToRawLongBits(d));
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jun 15 20:59:00 GMT 2022
    - 3.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/hash/AbstractCompositeHashFunction.java

            for (Hasher hasher : hashers) {
              hasher.putDouble(d);
            }
            return this;
          }
    
          @Override
          public Hasher putBoolean(boolean b) {
            for (Hasher hasher : hashers) {
              hasher.putBoolean(b);
            }
            return this;
          }
    
          @Override
          public Hasher putChar(char c) {
            for (Hasher hasher : hashers) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Oct 06 00:47:57 GMT 2021
    - 5.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/hash/PrimitiveSink.java

      /** Puts a double into this sink. */
      @CanIgnoreReturnValue
      PrimitiveSink putDouble(double d);
    
      /** Puts a boolean into this sink. */
      @CanIgnoreReturnValue
      PrimitiveSink putBoolean(boolean b);
    
      /** Puts a character into this sink. */
      @CanIgnoreReturnValue
      PrimitiveSink putChar(char c);
    
      /**
       * Puts each 16-bit code unit from the {@link CharSequence} into this sink.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jun 15 20:59:00 GMT 2022
    - 3.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/hash/Hasher.java

      @CanIgnoreReturnValue
      @Override
      Hasher putDouble(double d);
    
      /** Equivalent to {@code putByte(b ? (byte) 1 : (byte) 0)}. */
      @CanIgnoreReturnValue
      @Override
      Hasher putBoolean(boolean b);
    
      @CanIgnoreReturnValue
      @Override
      Hasher putChar(char c);
    
      /**
       * Equivalent to processing each {@code char} value in the {@code CharSequence}, in order. In
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jun 15 20:59:00 GMT 2022
    - 5.5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/hash/HashTestUtils.java

        PUT_BOOLEAN() {
          @Override
          void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) {
            boolean value = random.nextBoolean();
            for (PrimitiveSink sink : sinks) {
              sink.putBoolean(value);
            }
          }
        },
        PUT_BYTE() {
          @Override
          void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) {
            int value = random.nextInt();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 25.3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/hash/HashFunction.java

       * instance that is ready to receive data. Example:
       *
       * <pre>{@code
       * HashFunction hf = Hashing.md5();
       * HashCode hc = hf.newHasher()
       *     .putLong(id)
       *     .putBoolean(isActive)
       *     .hash();
       * }</pre>
       */
      Hasher newHasher();
    
      /**
       * Begins a new hash code computation as {@link #newHasher()}, but provides a hint of the expected
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue May 25 18:22:59 GMT 2021
    - 10.9K bytes
    - Viewed (0)
Back to top