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 TypeMethodDescriptionintcompareTo(RangeSet.Range other) booleancontains(int i) booleancontains(RangeSet.Range other) Checks if this range completely can contain the other range.booleaninthashCode()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:
trueif other completely contained by this, otherwisefalse
-
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<RangeSet.Range>
-
equals
-
hashCode
public int hashCode()
-