Class Range.RangeOfLength

java.lang.Object
org.fcrepo.http.commons.domain.Range.RangeOfLength
Enclosing class:
Range

public static class Range.RangeOfLength extends Object
Represents a range object based on length
  • Constructor Details

    • 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 Details

    • start

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

      Returns:
      the start of the range as a string
    • 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