|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rj.tools.jcsc.TriStateBoolean
TriStateBoolean
is a boolean which can have
three states - true, false, either.
Field Summary | |
static java.lang.String |
EITHER
EITHER - either boolean true or false |
static java.lang.String |
FALSE
boolean FALSE |
static java.lang.String |
TRUE
boolean TRUE |
Constructor Summary | |
TriStateBoolean(java.lang.String state)
TriStateBoolean creates a new TriStateBoolean instance |
Method Summary | |
java.lang.String |
getState()
getState returns the current state |
boolean |
isEither()
isEither indicates whether the state is either |
boolean |
isFalse()
isFalse indicates whether the state is false |
boolean |
isTrue()
isTrue indicates whether the state is true |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String TRUE
TRUE
public static final java.lang.String FALSE
FALSE
public static final java.lang.String EITHER
EITHER
- either boolean true or false
Constructor Detail |
public TriStateBoolean(java.lang.String state)
TriStateBoolean
creates a new TriStateBoolean instance
state
- a String
value which can be either true,
false or either. (i.e. TriStateBoolean.TRUE)Method Detail |
public java.lang.String getState()
getState
returns the current state
String
value; true, false or eitherpublic boolean isTrue()
isTrue
indicates whether the state is true
boolean
valuepublic boolean isFalse()
isFalse
indicates whether the state is false
boolean
valuepublic boolean isEither()
isEither
indicates whether the state is either
boolean
value
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |