Searched refs:elementFunnel (Results 1 – 4 of 4) sorted by relevance
/external/guava/guava/src/com/google/common/hash/ |
D | Funnels.java | 167 public static <E> Funnel<Iterable<? extends E>> sequentialFunnel(Funnel<E> elementFunnel) { in sequentialFunnel() argument 168 return new SequentialFunnel<E>(elementFunnel); in sequentialFunnel() 172 private final Funnel<E> elementFunnel; field in Funnels.SequentialFunnel 174 SequentialFunnel(Funnel<E> elementFunnel) { in SequentialFunnel() argument 175 this.elementFunnel = Preconditions.checkNotNull(elementFunnel); in SequentialFunnel() 181 elementFunnel.funnel(e, into); in funnel() 187 return "Funnels.sequentialFunnel(" + elementFunnel + ")"; in toString() 194 return elementFunnel.equals(funnel.elementFunnel); in equals() 201 return SequentialFunnel.class.hashCode() ^ elementFunnel.hashCode(); in hashCode()
|
/external/guava/android/guava/src/com/google/common/hash/ |
D | Funnels.java | 167 public static <E> Funnel<Iterable<? extends E>> sequentialFunnel(Funnel<E> elementFunnel) { in sequentialFunnel() argument 168 return new SequentialFunnel<E>(elementFunnel); in sequentialFunnel() 172 private final Funnel<E> elementFunnel; field in Funnels.SequentialFunnel 174 SequentialFunnel(Funnel<E> elementFunnel) { in SequentialFunnel() argument 175 this.elementFunnel = Preconditions.checkNotNull(elementFunnel); in SequentialFunnel() 181 elementFunnel.funnel(e, into); in funnel() 187 return "Funnels.sequentialFunnel(" + elementFunnel + ")"; in toString() 194 return elementFunnel.equals(funnel.elementFunnel); in equals() 201 return SequentialFunnel.class.hashCode() ^ elementFunnel.hashCode(); in hashCode()
|
/external/guava/android/guava-tests/test/com/google/common/hash/ |
D | FunnelsTest.java | 97 Funnel<Object> elementFunnel = mock(Funnel.class); in testSequential() local 99 Funnel<Iterable<?>> sequential = Funnels.sequentialFunnel(elementFunnel); in testSequential() 101 InOrder inOrder = inOrder(elementFunnel); in testSequential() 102 inOrder.verify(elementFunnel).funnel("foo", primitiveSink); in testSequential() 103 inOrder.verify(elementFunnel).funnel("bar", primitiveSink); in testSequential() 104 inOrder.verify(elementFunnel).funnel("baz", primitiveSink); in testSequential() 105 inOrder.verify(elementFunnel).funnel("quux", primitiveSink); in testSequential()
|
/external/guava/guava-tests/test/com/google/common/hash/ |
D | FunnelsTest.java | 97 Funnel<Object> elementFunnel = mock(Funnel.class); in testSequential() local 99 Funnel<Iterable<?>> sequential = Funnels.sequentialFunnel(elementFunnel); in testSequential() 101 InOrder inOrder = inOrder(elementFunnel); in testSequential() 102 inOrder.verify(elementFunnel).funnel("foo", primitiveSink); in testSequential() 103 inOrder.verify(elementFunnel).funnel("bar", primitiveSink); in testSequential() 104 inOrder.verify(elementFunnel).funnel("baz", primitiveSink); in testSequential() 105 inOrder.verify(elementFunnel).funnel("quux", primitiveSink); in testSequential()
|