- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for PrimitiveSink (0.06 sec)
-
guava-tests/test/com/google/common/hash/FunnelsTest.java
public void testForBytes() { PrimitiveSink primitiveSink = mock(PrimitiveSink.class); Funnels.byteArrayFunnel().funnel(new byte[] {4, 3, 2, 1}, primitiveSink); verify(primitiveSink).putBytes(new byte[] {4, 3, 2, 1}); } public void testForBytes_null() { assertNullsThrowException(Funnels.byteArrayFunnel()); } public void testForStrings() { PrimitiveSink primitiveSink = mock(PrimitiveSink.class);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 5.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/HashTestUtils.java
String s = new String(new char[] {randomLowSurrogate(random)}); for (PrimitiveSink sink : sinks) { sink.putUnencodedChars(s); } } }, PUT_STRING_HIGH_SURROGATE() { @Override void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { String s = new String(new char[] {randomHighSurrogate(random)});
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 25.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/BloomFilterTest.java
SerializableTester.reserializeAndAssert(BloomFilter.create(new CustomFunnel(), 100)); } private static final class CustomFunnel implements Funnel<Long> { @Override public void funnel(Long value, PrimitiveSink into) { into.putLong(value); } @Override public boolean equals(@Nullable Object object) { return (object instanceof CustomFunnel); } @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 14:28:19 UTC 2024 - 21.2K bytes - Viewed (0)