Class Pair<L,​R>


  • public class Pair<L,​R>
    extends java.lang.Object
    A small utility class used to pair relevant objects together.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private L left  
      private R right  
    • Constructor Summary

      Constructors 
      Constructor Description
      Pair​(L left, R right)  
    • Field Detail

      • left

        private final L left
      • right

        private final R right
    • Constructor Detail

      • Pair

        public Pair​(L left,
                    R right)
    • Method Detail

      • getLeft

        public L getLeft()
      • getRight

        public R getRight()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object