|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.parboiled.common.Reference<T>
T - public class Reference<T>
A simple container holding a reference to another object.
| Constructor Summary | |
|---|---|
Reference()
Create a new Reference with a null value. |
|
Reference(T value)
Create a new Reference to the given value object. |
|
| Method Summary | |
|---|---|
boolean |
clear()
Sets this references value field to null. |
T |
get()
Retrieves this references value object. |
T |
getAndClear()
Retrieves this references value field and clears it. |
T |
getAndSet(T value)
Replaces this references value with the given one. |
boolean |
isNotSet()
|
boolean |
isSet()
|
boolean |
set(T value)
Sets this references value object to the given instance. |
T |
setAndGet(T value)
Replaces this references value with the given one. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Reference()
public Reference(T value)
value - the value object| Method Detail |
|---|
public boolean clear()
public boolean set(T value)
value - the value
public T get()
public T getAndClear()
public T getAndSet(T value)
value - the new value
public T setAndGet(T value)
value - the new value
public boolean isSet()
public boolean isNotSet()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||