Module odo.core

Class Pair<T,​K>

java.lang.Object
net.odoframework.util.Pair<T,​K>
Direct Known Subclasses:
WritablePair

public class Pair<T,​K>
extends Object
  • Constructor Details

    • Pair

      public Pair​(T left, K right)
  • Method Details

    • cons

      public static <A,​ B> Pair<A,​B> cons​(A left, B right)
    • toMap

      @SafeVarargs public static <T,​ K> Map<T,​K> toMap​(Pair<T,​K>... pairs)
    • getLeft

      public T getLeft()
    • getRight

      public K getRight()
    • equals

      public boolean equals​(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object