- Sort Score
- Num 10 results
- Language All
Results 1 - 6 of 6 for byteArrayFunnel (0.42 seconds)
-
guava-tests/test/com/google/common/hash/FunnelsTest.java
public void testForBytes() { PrimitiveSink primitiveSink = mock(PrimitiveSink.class); byteArrayFunnel().funnel(new byte[] {4, 3, 2, 1}, primitiveSink); verify(primitiveSink).putBytes(new byte[] {4, 3, 2, 1}); } public void testForBytes_null() { assertNullsThrowException(byteArrayFunnel()); } public void testForStrings() { PrimitiveSink primitiveSink = mock(PrimitiveSink.class);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 6.2K bytes - Click Count (0) -
guava-tests/test/com/google/common/hash/BloomFilterTest.java
public void testEquals_empty() { new EqualsTester() .addEqualityGroup(BloomFilter.create(byteArrayFunnel(), 100, 0.01)) .addEqualityGroup(BloomFilter.create(byteArrayFunnel(), 100, 0.02)) .addEqualityGroup(BloomFilter.create(byteArrayFunnel(), 200, 0.01)) .addEqualityGroup(BloomFilter.create(byteArrayFunnel(), 200, 0.02)) .addEqualityGroup(BloomFilter.create(unencodedCharsFunnel(), 100, 0.01))
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 23K bytes - Click Count (0) -
android/guava/src/com/google/common/hash/Funnels.java
public static Funnel<byte[]> byteArrayFunnel() { return ByteArrayFunnel.INSTANCE; } private enum ByteArrayFunnel implements Funnel<byte[]> { INSTANCE; @Override public void funnel(byte[] from, PrimitiveSink into) { into.putBytes(from); } @Override public String toString() { return "Funnels.byteArrayFunnel()"; } } /**
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jul 17 15:26:41 GMT 2025 - 7.2K bytes - Click Count (0) -
guava-tests/test/com/google/common/hash/Murmur3Hash128Test.java
* See the License for the specific language governing permissions and * limitations under the License. */ package com.google.common.hash; import static com.google.common.hash.Funnels.byteArrayFunnel; import static com.google.common.hash.Hashing.murmur3_128; import static com.google.common.truth.Truth.assertThat; import static java.nio.charset.StandardCharsets.UTF_8;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 3.3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/hash/Murmur3Hash32Test.java
* See the License for the specific language governing permissions and * limitations under the License. */ package com.google.common.hash; import static com.google.common.hash.Funnels.byteArrayFunnel; import static com.google.common.hash.Hashing.murmur3_32; import static com.google.common.hash.Hashing.murmur3_32_fixed; import static java.nio.charset.StandardCharsets.UTF_16;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 8.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/hash/Murmur3Hash32Test.java
* See the License for the specific language governing permissions and * limitations under the License. */ package com.google.common.hash; import static com.google.common.hash.Funnels.byteArrayFunnel; import static com.google.common.hash.Hashing.murmur3_32; import static com.google.common.hash.Hashing.murmur3_32_fixed; import static java.nio.charset.StandardCharsets.UTF_16;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 8.4K bytes - Click Count (0)