Class Pair


  • public final class Pair
    extends Object
    A Pair is a container for two coordinates, the "first" and the "second" one.
    • Constructor Detail

      • Pair

        public Pair​(int first,
                    int second)
        Constructor for Pair.
        Parameters:
        first - must be different from null
        second - must be different from null
      • Pair

        public Pair​(int first,
                    int second,
                    int value)
    • Method Detail

      • getFirst

        public int getFirst()
        Returns the first.
        Returns:
        int
      • getSecond

        public int getSecond()
        Returns the second.
        Returns:
        int
      • getValue

        public int getValue()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object