Package gnu.inet.encoding
Class RangeSet
java.lang.Object
gnu.inet.encoding.RangeSet
Set of integer ranges supporting efficient contains-checks.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
static final class
-
Method Summary
Modifier and TypeMethodDescriptionstatic RangeSet.Builder
builder()
boolean
contains
(int i) boolean
boolean
containsAnyCodePoint
(CharSequence text, RangeSet.Range inputRange) static RangeSet.Range
createTextRange
(CharSequence text) Returns the range of the input orall-inclusive range
if input is emptytoString()
-
Method Details
-
builder
-
contains
public boolean contains(int i) -
containsAnyCodePoint
-
containsAnyCodePoint
-
createTextRange
Returns the range of the input orall-inclusive range
if input is empty- Parameters:
text
- input text- Returns:
- range of input, or
all-inclusive
if empty input
-
toString
-