Class BiCollection<L,R>

java.lang.Object
com.google.mu.util.stream.BiCollection<L,R>

@Deprecated public final class BiCollection<L,R> extends Object
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 Type
    Method
    Description
    boolean
    Deprecated.
     
    int
    Deprecated.
     
    static <L, R> BiCollection<L,R>
    of()
    Deprecated.
    Returns an empty BiCollection.
    static <L, R> BiCollection<L,R>
    of(L left, R right)
    Deprecated.
    Returns a BiCollection for left and right.
    static <L, R> BiCollection<L,R>
    of(L left1, R right1, L left2, R right2)
    Deprecated.
    Returns a BiCollection for two pairs.
    static <L, R> BiCollection<L,R>
    of(L left1, R right1, L left2, R right2, L left3, R right3)
    Deprecated.
    Returns a BiCollection 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 a BiCollection 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 a BiCollection for five pairs.
    int
    Deprecated.
    Returns the size of the collection.
    Deprecated.
    Streams over this BiCollection.
    static <T, L, R> Collector<T,?,BiCollection<L,R>>
    toBiCollection(Function<? super T,? extends L> leftFunction, Function<? super T,? extends R> rightFunction)
    Deprecated.
    Returns a Collector that extracts the pairs from the input stream, and then collects them into a BiCollection.
    Deprecated.
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Method Details

    • of

      public static <L, R> BiCollection<L,R> of()
      Deprecated.
      Returns an empty BiCollection.
    • of

      public static <L, R> BiCollection<L,R> of(L left, R right)
      Deprecated.
      Returns a BiCollection for left and right.
    • of

      public static <L, R> BiCollection<L,R> of(L left1, R right1, L left2, R right2)
      Deprecated.
      Returns a BiCollection for two pairs.
    • of

      public static <L, R> BiCollection<L,R> of(L left1, R right1, L left2, R right2, L left3, R right3)
      Deprecated.
      Returns a BiCollection 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 a BiCollection 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 a BiCollection for five pairs.
    • toBiCollection

      public static <T, L, R> Collector<T,?,BiCollection<L,R>> toBiCollection(Function<? super T,? extends L> leftFunction, Function<? super T,? extends R> rightFunction)
      Deprecated.
      Returns a Collector that extracts the pairs from the input stream, and then collects them into a BiCollection.
      Parameters:
      leftFunction - extracts the first element of each pair
      rightFunction - extracts the second element of each pair
    • size

      public int size()
      Deprecated.
      Returns the size of the collection.
    • stream

      public BiStream<L,R> stream()
      Deprecated.
      Streams over this BiCollection.
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object
      Since:
      1.5
    • equals

      public boolean equals(Object obj)
      Deprecated.
      Overrides:
      equals in class Object
      Since:
      1.5
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object
      Since:
      1.5