- Sort Score
- Num 10 results
- Language All
Results 1 - 5 of 5 for ImmutableSupplier (0.09 seconds)
-
android/guava/src/com/google/common/hash/ImmutableSupplier.java
* Explicitly named subinterface of {@link Supplier} that can be marked {@literal @}{@link * Immutable}. */ // TODO(cpovirk): Should we just use ChecksumType directly instead of defining this type? @ImmutableCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 21 03:10:51 GMT 2024 - 991 bytes - Click Count (0) -
guava-tests/test/com/google/common/hash/ChecksumHashFunctionTest.java
assertHash32(0x5BDC0FDA, ADLER_32, "The quick brown fox jumps over the lazy dog"); assertHash32(0x5BD90FD9, ADLER_32, "The quick brown fox jumps over the lazy cog"); } private static void assertChecksum(ImmutableSupplier<Checksum> supplier, String input) { byte[] bytes = HashTestUtils.ascii(input); Checksum checksum = supplier.get(); checksum.update(bytes, 0, bytes.length); long value = checksum.getValue();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 3.3K bytes - Click Count (0) -
android/guava/src/com/google/common/hash/ChecksumHashFunction.java
*/ @Immutable final class ChecksumHashFunction extends AbstractHashFunction implements Serializable { private final ImmutableSupplier<? extends Checksum> checksumSupplier; private final int bits; private final String toString; ChecksumHashFunction( ImmutableSupplier<? extends Checksum> checksumSupplier, int bits, String toString) { this.checksumSupplier = checkNotNull(checksumSupplier);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Feb 13 17:34:21 GMT 2025 - 2.7K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/hash/ChecksumHashFunctionTest.java
assertHash32(0x5BDC0FDA, ADLER_32, "The quick brown fox jumps over the lazy dog"); assertHash32(0x5BD90FD9, ADLER_32, "The quick brown fox jumps over the lazy cog"); } private static void assertChecksum(ImmutableSupplier<Checksum> supplier, String input) { byte[] bytes = HashTestUtils.ascii(input); Checksum checksum = supplier.get(); checksum.update(bytes, 0, bytes.length); long value = checksum.getValue();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 3.3K bytes - Click Count (0) -
android/guava/src/com/google/common/hash/Hashing.java
* * @since 14.0 */ public static HashFunction adler32() { return ChecksumType.ADLER_32.hashFunction; } @Immutable enum ChecksumType implements ImmutableSupplier<Checksum> { CRC_32("Hashing.crc32()") { @Override public Checksum get() { return new CRC32(); } }, ADLER_32("Hashing.adler32()") { @Override
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jul 17 15:26:41 GMT 2025 - 29.8K bytes - Click Count (0)