Class ByteRange

    • Field Detail

      • start

        protected final long start
      • end

        protected final long end
        The end is inclusive.
    • Constructor Detail

      • ByteRange

        protected ByteRange​(long start,
                            long end)
    • Method Detail

      • inclusive

        public static ByteRange inclusive​(long start,
                                          long end)
        Constructs a byte range from a start and INCLUSIVE end.
        Parameters:
        start - the start
        end - the INCLUSIVE end
      • getStart

        public long getStart()
        The start.
      • getEnd

        public long getEnd()
        The end, which is INCLUSIVE.
      • getLength

        public long getLength()
        The length.