public static class ContentRange.Bounded
extends ContentRange
Represents a Content-Range
bounded from both sides
ContentRange.Bounded, ContentRange.Suffix, ContentRange.TailFrom
Constructor and Description |
---|
Bounded(long from,
long to)
Represents a
Content-Range bounded from both sides |
Modifier and Type | Method and Description |
---|---|
long |
component1()
index from which the content should begin
|
long |
component2()
the last index the content should end at
|
ContentRange.Bounded |
copy(long from,
long to)
Represents a
Content-Range bounded from both sides |
boolean |
equals(java.lang.Object p) |
long |
getFrom()
index from which the content should begin
|
long |
getTo()
the last index the content should end at
|
int |
hashCode() |
java.lang.String |
toString() |
public Bounded(long from, long to)
Represents a Content-Range
bounded from both sides
from
- index from which the content should beginto
- the last index the content should end atpublic java.lang.String toString()
public long getFrom()
index from which the content should begin
public long getTo()
the last index the content should end at
public long component1()
index from which the content should begin
public long component2()
the last index the content should end at
public ContentRange.Bounded copy(long from, long to)
Represents a Content-Range
bounded from both sides
public int hashCode()
public boolean equals(java.lang.Object p)