Package org.openl.rules.helpers
Class StringRange
- java.lang.Object
-
- org.openl.rules.helpers.StringRange
-
public class StringRange extends Object
-
-
Constructor Summary
Constructors Constructor Description StringRange(String source)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringRangeautocast(String x, StringRange y)static StringRangecast(char[] x, StringRange y)intcompareLowerBound(StringRange range)intcompareUpperBound(StringRange range)booleancontains(CharSequence s)booleancontains(NumericComparableString s)booleancontains(StringRange range)static intdistance(char[] x, StringRange y)static intdistance(String x, StringRange y)booleanequals(Object o)NumericComparableStringgetLowerBound()ARangeParser.ParseStruct.BoundTypegetLowerBoundType()NumericComparableStringgetUpperBound()ARangeParser.ParseStruct.BoundTypegetUpperBoundType()inthashCode()StringtoString()
-
-
-
Constructor Detail
-
StringRange
public StringRange(String source)
-
-
Method Detail
-
getLowerBound
public NumericComparableString getLowerBound()
-
getLowerBoundType
public ARangeParser.ParseStruct.BoundType getLowerBoundType()
-
getUpperBound
public NumericComparableString getUpperBound()
-
getUpperBoundType
public ARangeParser.ParseStruct.BoundType getUpperBoundType()
-
contains
public boolean contains(NumericComparableString s)
-
contains
public boolean contains(CharSequence s)
-
compareUpperBound
public int compareUpperBound(StringRange range)
-
compareLowerBound
public int compareLowerBound(StringRange range)
-
contains
public boolean contains(StringRange range)
-
autocast
public static StringRange autocast(String x, StringRange y)
-
distance
public static int distance(String x, StringRange y)
-
cast
public static StringRange cast(char[] x, StringRange y)
-
distance
public static int distance(char[] x, StringRange y)
-
-