Class Pair

java.lang.Object
org.openprovenance.prov.validation.matrix.Pair

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

    • 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 Details

    • getFirst

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

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

      public int getValue()
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
      See Also: