Class JListHpr.Range

  • Enclosing class:
    JListHpr

    public static class JListHpr.Range
    extends java.lang.Object
    An inner class to describe a selected range (start, end, length).
    • Constructor Summary

      Constructors 
      Constructor Description
      Range​(int loc, int len)
      Creates a new range.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int end()
      Returns the end of the range.
      boolean equals​(java.lang.Object other)
      Returns whether range is equal to another.
      int length()
      Returns the length of the range.
      int start()
      Returns the start of the range.
      • Methods inherited from class java.lang.Object

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

      • Range

        public Range​(int loc,
                     int len)
        Creates a new range.
    • Method Detail

      • start

        public int start()
        Returns the start of the range.
      • end

        public int end()
        Returns the end of the range.
      • length

        public int length()
        Returns the length of the range.
      • equals

        public boolean equals​(java.lang.Object other)
        Returns whether range is equal to another.
        Overrides:
        equals in class java.lang.Object