Class Row

  • All Implemented Interfaces:
    java.lang.Comparable<Row>

    public class Row
    extends java.lang.Object
    implements java.lang.Comparable<Row>
    Stores two ints.
    Author:
    Matthew Wakeling
    • Constructor Summary

      Constructors 
      Constructor Description
      Row​(int left, int right)
      Constructor.
    • Constructor Detail

      • Row

        public Row​(int left,
                   int right)
        Constructor.
        Parameters:
        left - the left integer
        right - the right integer
    • Method Detail

      • getLeft

        public int getLeft()
        Returns left.
        Returns:
        left
      • getRight

        public int getRight()
        Returns right.
        Returns:
        right
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • compareTo

        public int compareTo​(Row o)
        Specified by:
        compareTo in interface java.lang.Comparable<Row>