Class Pair<First,​Second>


  • public class Pair<First,​Second>
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Pair​(First first, Second second)
      Create a pair.
    • Constructor Detail

      • Pair

        public Pair​(First first,
                    Second second)
        Create a pair.
        Parameters:
        first - first item in pair
        second - item in pair
    • Method Detail

      • getFirst

        public First getFirst()
        Returns:
        the first item
      • getSecond

        public Second getSecond()
        Returns:
        the second item