Class IndexRange


  • public class IndexRange
    extends java.lang.Object
    Class for holding a begin and end index.
    • Constructor Summary

      Constructors 
      Constructor Description
      IndexRange​(long start, long end)
      Constructor for IndexRange.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      long getEnd()
      Returns the ending index of the range.
      long getStart()
      Returns the starting index of the range.
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IndexRange

        public IndexRange​(long start,
                          long end)
        Constructor for IndexRange.
        Parameters:
        start - the starting index of the range.
        end - the ending index of the range.
    • Method Detail

      • getStart

        public long getStart()
        Returns the starting index of the range.
        Returns:
        the starting index of the range.
      • getEnd

        public long getEnd()
        Returns the ending index of the range.
        Returns:
        the ending index of the range.
      • equals

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

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
        See Also:
        Object.hashCode()