Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 389 for Funnel (0.21 sec)

  1. android/guava/src/com/google/common/hash/AbstractHashFunction.java

    @ElementTypesAreNonnullByDefault
    abstract class AbstractHashFunction implements HashFunction {
      @Override
      public <T extends @Nullable Object> HashCode hashObject(
          @ParametricNullness T instance, Funnel<? super T> funnel) {
        return newHasher().putObject(instance, funnel).hash();
      }
    
      @Override
      public HashCode hashUnencodedChars(CharSequence input) {
        int len = input.length();
        return newHasher(len * 2).putUnencodedChars(input).hash();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 20 18:43:59 GMT 2021
    - 2.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/hash/AbstractCompositeHashFunction.java

            }
            return this;
          }
    
          @Override
          public <T extends @Nullable Object> Hasher putObject(
              @ParametricNullness T instance, Funnel<? super T> funnel) {
            for (Hasher hasher : hashers) {
              hasher.putObject(instance, funnel);
            }
            return this;
          }
    
          @Override
          public HashCode hash() {
            return makeHash(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)
  3. guava-tests/test/com/google/common/hash/HashTestUtils.java

                  + Integer.toHexString(expected)
                  + " got: "
                  + Integer.toHexString(verification));
        }
      }
    
      static final Funnel<Object> BAD_FUNNEL =
          new Funnel<Object>() {
            @Override
            public void funnel(Object object, PrimitiveSink bytePrimitiveSink) {
              bytePrimitiveSink.putInt(object.hashCode());
            }
          };
    
      enum RandomHasherAction {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 25.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/hash/HashFunction.java

      /**
       * Shortcut for {@code newHasher().putObject(instance, funnel).hash()}. The implementation
       * <i>might</i> perform better than its longhand equivalent, but should not perform worse.
       *
       * @since 14.0
       */
      <T extends @Nullable Object> HashCode hashObject(
          @ParametricNullness T instance, Funnel<? super T> funnel);
    
      /**
    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)
  5. android/guava-tests/test/com/google/common/hash/HashTestUtils.java

                  + Integer.toHexString(expected)
                  + " got: "
                  + Integer.toHexString(verification));
        }
      }
    
      static final Funnel<Object> BAD_FUNNEL =
          new Funnel<Object>() {
            @Override
            public void funnel(Object object, PrimitiveSink bytePrimitiveSink) {
              bytePrimitiveSink.putInt(object.hashCode());
            }
          };
    
      enum RandomHasherAction {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 25.3K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/hash/Murmur3Hash128Test.java

        HashFn hf =
            new HashFn() {
              @Override
              public byte[] hash(byte[] input, int seed) {
                Hasher hasher = murmur3_128(seed).newHasher();
                Funnels.byteArrayFunnel().funnel(input, hasher);
                return hasher.hash().asBytes();
              }
            };
        // Murmur3F, MurmurHash3 for x64, 128-bit (MurmurHash3_x64_128)
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.2K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/hash/Murmur3Hash128Test.java

        HashFn hf =
            new HashFn() {
              @Override
              public byte[] hash(byte[] input, int seed) {
                Hasher hasher = murmur3_128(seed).newHasher();
                Funnels.byteArrayFunnel().funnel(input, hasher);
                return hasher.hash().asBytes();
              }
            };
        // Murmur3F, MurmurHash3 for x64, 128-bit (MurmurHash3_x64_128)
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.2K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/hash/Murmur3Hash32Test.java

        HashFn hf =
            new HashFn() {
              @Override
              public byte[] hash(byte[] input, int seed) {
                Hasher hasher = murmur3_32(seed).newHasher();
                Funnels.byteArrayFunnel().funnel(input, hasher);
                return hasher.hash().asBytes();
              }
            };
        // Murmur3A, MurmurHash3 for x86, 32-bit (MurmurHash3_x86_32)
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 08 13:56:22 GMT 2021
    - 8.6K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/hash/Murmur3Hash32Test.java

        HashFn hf =
            new HashFn() {
              @Override
              public byte[] hash(byte[] input, int seed) {
                Hasher hasher = murmur3_32(seed).newHasher();
                Funnels.byteArrayFunnel().funnel(input, hasher);
                return hasher.hash().asBytes();
              }
            };
        // Murmur3A, MurmurHash3 for x86, 32-bit (MurmurHash3_x86_32)
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 08 13:56:22 GMT 2021
    - 8.6K bytes
    - Viewed (0)
  10. guava-testlib/test/com/google/common/collect/testing/MyTester.java

    import org.junit.Ignore;
    
    /** Support class added to a suite as part of {@link FeatureSpecificTestSuiteBuilderTest}. */
    /*
     * @Ignore affects the Android test runner (and only the Android test runner): It respects JUnit 4
     * annotations even on JUnit 3 tests.
     *
     * TODO(b/225350400): Remove @Ignore, which doesn't seem like it should be necessary and probably
     * soon won't be.
     */
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 14:48:57 GMT 2023
    - 1.3K bytes
    - Viewed (0)
Back to top