Class Ranges.Entry

  • All Implemented Interfaces:
    java.lang.Comparable<Ranges.Entry>
    Enclosing class:
    Ranges

    public static class Ranges.Entry
    extends java.lang.Object
    implements java.lang.Comparable<Ranges.Entry>
    Represents a single range entry with a start and end position.
    • Constructor Summary

      Constructors 
      Constructor Description
      Entry​(long start, long end)
      Creates a new range entry.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compareTo​(Ranges.Entry o)  
      boolean equals​(java.lang.Object obj)  
      long getEnd()
      Returns the end position of the range.
      long getStart()
      Returns the start position of the range.
      int hashCode()  
      • Methods inherited from class java.lang.Object

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

      • Entry

        public Entry​(long start,
                     long end)
        Creates a new range entry.
        Parameters:
        start - the start position of the range
        end - the end position of the range, or -1 if absent
    • Method Detail

      • getStart

        public long getStart()
        Returns the start position of the range.
        Returns:
        the start position
      • getEnd

        public long getEnd()
        Returns the end position of the range.
        Returns:
        the end position, or -1 if absent
      • compareTo

        public int compareTo​(Ranges.Entry o)
        Specified by:
        compareTo in interface java.lang.Comparable<Ranges.Entry>
      • hashCode

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

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object