|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ourgrid.common.matcher.Interval
public class Interval
Defines a closed interval and permits that logical conjunctions alters the interval .
Field Summary | |
---|---|
static java.lang.String |
EQUAL
|
static java.lang.String |
GREATER
|
static java.lang.String |
GREATER_EQUAL
|
static java.lang.String |
LESS
|
static java.lang.String |
LESS_EQUAL
|
static int |
UNDEFINED
|
Constructor Summary | |
---|---|
Interval()
Constructs a Interval [ - infinity, infinity ] |
Method Summary | |
---|---|
int |
getLeftMargin()
Returns the left margin of the interval. |
int |
getRightMargin()
Returns the right margin of the interval. |
boolean |
isInInterval(int factor)
Verifies a number is in the interval |
boolean |
isUndefiined()
Checks if the margins were not set yet. |
void |
modifyInterval(java.lang.String expression)
Modifies the interval with the expression. |
java.lang.String |
toString()
Returns a String representation of the Interval. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String GREATER_EQUAL
public static final java.lang.String LESS_EQUAL
public static final java.lang.String EQUAL
public static final java.lang.String GREATER
public static final java.lang.String LESS
public static final int UNDEFINED
Constructor Detail |
---|
public Interval()
Method Detail |
---|
public void modifyInterval(java.lang.String expression) throws InvalidIntervalModificationException
expression
- Sintax: "Operator number" Valid operators are: " <=",
">=", "==", ">", " <"
InvalidIntervalModificationException
public boolean isInInterval(int factor)
factor
- The number
public int getLeftMargin()
public int getRightMargin()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isUndefiined()
true
case the margins were not set yet.
false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |