Class Pair<O1,​O2>


  • public class Pair<O1,​O2>
    extends Object
    • Field Detail

      • first

        public O1 first
        The first element in the pair.
      • second

        public O2 second
        The second element in the pair.
    • Constructor Detail

      • Pair

        public Pair​(O1 first,
                    O2 second)
        Construct a Pair.
        Parameters:
        a - The first element in the pair.
        b - The second element in the pair.