Class Ranges.Entry
- java.lang.Object
-
- org.apache.tomcat.util.http.parser.Ranges.Entry
-
- All Implemented Interfaces:
java.lang.Comparable<Ranges.Entry>
- Enclosing class:
- Ranges
public static class Ranges.Entry extends java.lang.Object implements java.lang.Comparable<Ranges.Entry>
Represents a single range entry with a start and end position.
-
-
Constructor Summary
Constructors Constructor Description Entry(long start, long end)Creates a new range entry.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Ranges.Entry o)booleanequals(java.lang.Object obj)longgetEnd()Returns the end position of the range.longgetStart()Returns the start position of the range.inthashCode()
-
-
-
Method Detail
-
getStart
public long getStart()
Returns the start position of the range.- Returns:
- the start position
-
getEnd
public long getEnd()
Returns the end position of the range.- Returns:
- the end position, or -1 if absent
-
compareTo
public int compareTo(Ranges.Entry o)
- Specified by:
compareToin interfacejava.lang.Comparable<Ranges.Entry>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-