Package org.fcrepo.http.commons.domain
Class Range.RangeOfLength
java.lang.Object
org.fcrepo.http.commons.domain.Range.RangeOfLength
- Enclosing class:
Range
Represents a range object based on length
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRangeOfLength(long start, long end, long length) Create a range object based on length -
Method Summary
-
Constructor Details
-
RangeOfLength
Create a range object based on length- Parameters:
start- the start of the rangeend- the end of the rangelength- the length of the content
-
-
Method Details
-
start
- Returns:
- the start of the range
-
startAsString
- Returns:
- the start of the range as a string
-
end
- Returns:
- the end of the range
-
endAsString
- Returns:
- the end of the range as a string
-
isSatisfiable
- Returns:
- true if the range is satisfiable
-
size
- Returns:
- the size of the range, start & end inclusive so 0-0 is size 1
-