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