Package com.google.mu.util.stream
Class BiCollection<L,R>
java.lang.Object
com.google.mu.util.stream.BiCollection<L,R>
Deprecated.
too niche
BiCollection
to BiStream
is like Iterable
to Iterator
:
a re-streamable collection of pairs. Suitable when the pairs aren't logically a Map
or Multimap
.- Since:
- 1.4
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Deprecated.int
hashCode()
Deprecated.static <L,
R> BiCollection <L, R> of()
Deprecated.Returns an emptyBiCollection
.static <L,
R> BiCollection <L, R> of
(L left, R right) Deprecated.Returns aBiCollection
forleft
andright
.static <L,
R> BiCollection <L, R> of
(L left1, R right1, L left2, R right2) Deprecated.Returns aBiCollection
for two pairs.static <L,
R> BiCollection <L, R> of
(L left1, R right1, L left2, R right2, L left3, R right3) Deprecated.Returns aBiCollection
for three pairs.static <L,
R> BiCollection <L, R> of
(L left1, R right1, L left2, R right2, L left3, R right3, L left4, R right4) Deprecated.Returns aBiCollection
for four pairs.static <L,
R> BiCollection <L, R> of
(L left1, R right1, L left2, R right2, L left3, R right3, L left4, R right4, L left5, R right5) Deprecated.Returns aBiCollection
for five pairs.int
size()
Deprecated.Returns the size of the collection.stream()
Deprecated.Streams over thisBiCollection
.static <T,
L, R> Collector <T, ?, BiCollection<L, R>> toBiCollection
(Function<? super T, ? extends L> leftFunction, Function<? super T, ? extends R> rightFunction) Deprecated.Returns aCollector
that extracts the pairs from the input stream, and then collects them into aBiCollection
.toString()
Deprecated.
-
Method Details
-
of
Deprecated.Returns an emptyBiCollection
. -
of
Deprecated.Returns aBiCollection
forleft
andright
. -
of
Deprecated.Returns aBiCollection
for two pairs. -
of
Deprecated.Returns aBiCollection
for three pairs. -
of
public static <L,R> BiCollection<L,R> of(L left1, R right1, L left2, R right2, L left3, R right3, L left4, R right4) Deprecated.Returns aBiCollection
for four pairs. -
of
public static <L,R> BiCollection<L,R> of(L left1, R right1, L left2, R right2, L left3, R right3, L left4, R right4, L left5, R right5) Deprecated.Returns aBiCollection
for five pairs. -
toBiCollection
public static <T,L, Collector<T,R> ?, toBiCollectionBiCollection<L, R>> (Function<? super T, ? extends L> leftFunction, Function<? super T, ? extends R> rightFunction) Deprecated.Returns aCollector
that extracts the pairs from the input stream, and then collects them into aBiCollection
.- Parameters:
leftFunction
- extracts the first element of each pairrightFunction
- extracts the second element of each pair
-
size
public int size()Deprecated.Returns the size of the collection. -
stream
Deprecated.Streams over thisBiCollection
. -
hashCode
public int hashCode()Deprecated. -
equals
Deprecated. -
toString
Deprecated.
-