Class Pair<L,​R>

  • Type Parameters:
    L - L type
    R - R type
    All Implemented Interfaces:
    Serializable

    public class Pair<L,​R>
    extends Object
    implements Serializable
    Pair is a template class to represent a couple of values. It also override the Object basic methods like hasnCode, equals and toString.
    See Also:
    Serialized Form
    • Field Detail

      • left

        public L left
      • right

        public R right
    • Constructor Detail

      • Pair

        public Pair​(L l,
                    R r)
    • Method Detail

      • setLeft

        public void setLeft​(L left)
      • getLeft

        public L getLeft()
      • setRight

        public void setRight​(R right)
      • getRight

        public R getRight()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object