public static final class RangeSet.Range extends java.lang.Object implements java.lang.Comparable<RangeSet.Range>
| Constructor and Description |
|---|
Range(int single) |
Range(int first,
int last) |
Range(RangeSet.Range firstRange,
RangeSet.Range lastRange) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(RangeSet.Range other) |
boolean |
contains(int i) |
boolean |
contains(RangeSet.Range other)
Checks if this range completely can contain the other range.
|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
java.lang.String |
toString() |
public Range(int first,
int last)
public Range(int single)
public Range(RangeSet.Range firstRange, RangeSet.Range lastRange)
public boolean contains(int i)
public boolean contains(RangeSet.Range other)
other - other range to verifytrue if other completely contained by this,
otherwise falsepublic java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(RangeSet.Range other)
compareTo in interface java.lang.Comparable<RangeSet.Range>public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object