Class Range.RangeOfLength

    • Constructor Detail

      • RangeOfLength

        protected RangeOfLength​(long start,
                                long end,
                                long length)
        Create a range object based on length
        Parameters:
        start - the start of the range
        end - the end of the range
        length - the length of the content
    • Method Detail

      • start

        public long start()
        Returns:
        the start of the range
      • end

        public long end()
        Returns:
        the end of the range
      • endAsString

        public String endAsString()
        Returns:
        the end of the range as a string
      • isSatisfiable

        public boolean isSatisfiable()
        Returns:
        true if the range is satisfiable
      • size

        public long size()
        Returns:
        the size of the range, start & end inclusive so 0-0 is size 1