T - Type of output parameter.public final class Out<T> extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Empties the output parameter.
|
static <T> Out<T> |
empty()
Creates a new, empty output parameter.
|
boolean |
equals(Object obj) |
T |
get()
Gets the value of the output parameter.
|
int |
hashCode() |
boolean |
hasValue()
Gets whether an output parameter has been set.
|
void |
set(T value)
Sets the value of the output parameter.
|
String |
toString() |
public T get()
NoSuchElementException - An output value has not been set.public void set(T value)
value - Value of the output parameter.public boolean hasValue()
Out has been set, false otherwise.public void clear()
Copyright © 2016. All rights reserved.