T
- The type of the object being wrappedpublic class SharedClosureVariableWrapper<T>
extends java.lang.Object
Constructor and Description |
---|
SharedClosureVariableWrapper(T item)
Initializes with the encapsulated item.
|
SharedClosureVariableWrapper(T item,
java.lang.Class<?> genericTypeParameter)
Initializes with the encapsulated item.
|
Modifier and Type | Method and Description |
---|---|
T |
get()
Gets the item
|
java.lang.Class<?> |
getGenericTypeParameter()
Gets the generic type parameter
|
void |
set(T item)
Sets the item
|
public SharedClosureVariableWrapper(T item)
SuperTypeTokenException
- When not instantiated using anonymous class semantics.public SharedClosureVariableWrapper(T item, java.lang.Class<?> genericTypeParameter)
java.lang.NullPointerException
- When an argument is null.