|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.littleshoot.util.SomeImpl<T>
T - The type of object this optional object holds.public final class SomeImpl<T>
An implementation of the Some interface.
| Constructor Summary | |
|---|---|
SomeImpl(T object)
Constructs a new optional object with some object value. |
|
| Method Summary | ||
|---|---|---|
|
accept(OptionalVisitor<ReturnT,T> visitor)
Accepts a visitor to this optional object. |
|
boolean |
equals(Object other)
|
|
T |
object()
Returns the object. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SomeImpl(T object)
object - The object value.| Method Detail |
|---|
public T object()
object in interface Some<T>public <ReturnT> ReturnT accept(OptionalVisitor<ReturnT,T> visitor)
accept in interface Optional<T>ReturnT - The type returned by the visitor.visitor - The visitor.
public boolean equals(Object other)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||