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 classstatic final class -
Method Summary
Modifier and TypeMethodDescriptionstatic RangeSet.Builderbuilder()booleancontains(int i) booleanbooleancontainsAnyCodePoint(CharSequence text, RangeSet.Range inputRange) static RangeSet.RangecreateTextRange(CharSequence text) Returns the range of the input orall-inclusive rangeif input is emptytoString()
-
Method Details
-
builder
-
contains
public boolean contains(int i) -
containsAnyCodePoint
-
containsAnyCodePoint
-
createTextRange
Returns the range of the input orall-inclusive rangeif input is empty- Parameters:
text- input text- Returns:
- range of input, or
all-inclusiveif empty input
-
toString
-