|
GraphLab Project | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgraphlab.platform.lang.BoundedInteger
public class BoundedInteger
represents a bounded integer: it's value only can be in the (max ,min) bound.
Constructor Summary | |
---|---|
BoundedInteger(int value)
sets the max and min to integer.maxvalue , minvalue |
|
BoundedInteger(int value,
int max,
int min)
|
Method Summary | |
---|---|
int |
getMax()
|
int |
getMin()
|
java.lang.Integer |
getValue()
|
boolean |
isValid(java.lang.Integer xx)
is xx in bounds? |
void |
setMax(int max)
|
void |
setMin(int min)
|
boolean |
setValue(java.lang.Integer value)
returns true if value is in the bounds of this bounded integer and set the current value |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BoundedInteger(int value)
value
- public BoundedInteger(int value, int max, int min)
Method Detail |
---|
public int getMax()
public void setMax(int max)
public int getMin()
public void setMin(int min)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean setValue(java.lang.Integer value)
setValue
in interface AtomAttribute<java.lang.Integer>
public java.lang.Integer getValue()
getValue
in interface AtomAttribute<java.lang.Integer>
public boolean isValid(java.lang.Integer xx)
isValid
in interface Validator<java.lang.Integer>
|
GraphLab Project | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |