Class Range


  • public class Range
    extends Object

    Utility class to represent ranging information. Range instances are immutable.

    Usage:

     Range range = Range.of(0, 5);
     
    • Constructor Detail

      • Range

        public Range​(int startIndex,
                     int lastIndex)
    • Method Detail

      • of

        public static Range of​(int startIndex,
                               int lastIndex)
      • getStartIndex

        public int getStartIndex()
      • getLastIndex

        public int getLastIndex()