|
Qizx/Open v0.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.xfra.qizxopen.util.Bound
Represents a comparison on a numeric or string value. Static factory methods return Bounds of different kinds (implemented by nested subclasses).
Nested Class Summary | |
static class |
Bound.NumberGE
|
static class |
Bound.NumberGT
|
static class |
Bound.NumberLE
|
static class |
Bound.NumberLT
|
static class |
Bound.Numeric
|
static class |
Bound.StringBound
|
static class |
Bound.StringGE
|
static class |
Bound.StringGT
|
static class |
Bound.StringLE
|
static class |
Bound.StringLT
|
Constructor Summary | |
Bound()
|
Method Summary | |
static Bound |
GE(double value)
returns a Bound matching numbers greater-than-or-equal-to the specified value. |
static Bound |
GE(java.lang.String value)
returns a Bound matching strings greater-than-or-equal-to the specified value. |
static Bound |
GT(double value)
returns a Bound matching numbers greater-than the specified value. |
static Bound |
GT(java.lang.String value)
returns a Bound matching strings greater-than the specified value. |
abstract boolean |
isNumeric()
|
boolean |
isStrict()
|
static Bound |
LE(double value)
returns a Bound matching numbers less-than-or-equal-to the specified value. |
static Bound |
LE(java.lang.String value)
returns a Bound matching strings less-than-or-equal-to the specified value. |
static Bound |
LT(double value)
returns a new Bound matching numbers less-than the specified value. |
static Bound |
LT(java.lang.String value)
returns a new Bound matching strings less-than the specified value. |
double |
numericValue()
|
java.lang.String |
stringValue()
|
abstract boolean |
test(double value)
Tests a numeric value against this Bound. |
abstract boolean |
test(java.lang.String value)
Tests a String value against this Bound. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Bound()
Method Detail |
public boolean isStrict()
public abstract boolean test(double value)
java.lang.IllegalArgumentException
- if not a numeric Bound.public abstract boolean test(java.lang.String value)
java.lang.IllegalArgumentException
- if not a String Bound.public abstract boolean isNumeric()
public java.lang.String stringValue()
public double numericValue()
public static Bound LT(double value)
public static Bound LE(double value)
public static Bound GE(double value)
public static Bound GT(double value)
public static Bound LT(java.lang.String value)
public static Bound LE(java.lang.String value)
public static Bound GE(java.lang.String value)
public static Bound GT(java.lang.String value)
|
Copyright Xavier FRANC 2003-2004 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |