|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.endeca.navigation.OptionalBoolean
public class OptionalBoolean
Class representing an boolean
or an unset value. Unlike an
boolean
, an OptionalBoolean
may be empty.
Constructor Summary | |
---|---|
OptionalBoolean()
Default constructor that creates an empty OptionalBoolean object. |
|
OptionalBoolean(boolean val)
Constructor specifying an boolean . |
Method Summary | |
---|---|
boolean |
getBoolean()
Accessor that returns the boolean of this OptionalBoolean . |
boolean |
isEmpty()
Returns whether this OptionalBoolean is empty. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OptionalBoolean()
OptionalBoolean
object.
public OptionalBoolean(boolean val)
boolean
.
val
- The value of the boolean
the
OptionalInt
holds.Method Detail |
---|
public boolean getBoolean() throws NoSuchElementException
boolean
of this OptionalBoolean
.
boolean
of this OptionalBoolean
.
NoSuchElementException
public boolean isEmpty()
OptionalBoolean
is empty.
OptionalBoolean
is empty.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |