Package gnu.inet.encoding
Class RangeSet.Range
java.lang.Object
gnu.inet.encoding.RangeSet.Range
- All Implemented Interfaces:
Comparable<RangeSet.Range>
- Enclosing class:
RangeSet
-
Constructor Summary
ConstructorsConstructorDescriptionRange
(int single) Range
(int first, int last) Range
(RangeSet.Range firstRange, RangeSet.Range lastRange) -
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(RangeSet.Range other) boolean
contains
(int i) boolean
contains
(RangeSet.Range other) Checks if this range completely can contain the other range.boolean
int
hashCode()
toString()
-
Constructor Details
-
Range
public Range(int first, int last) -
Range
public Range(int single) -
Range
-
-
Method Details
-
contains
public boolean contains(int i) -
contains
Checks if this range completely can contain the other range.- Parameters:
other
- other range to verify- Returns:
true
if other completely contained by this, otherwisefalse
-
toString
-
compareTo
- Specified by:
compareTo
in interfaceComparable<RangeSet.Range>
-
equals
-
hashCode
public int hashCode()
-