public class ImmutableReference<T>
extends java.lang.Object
null
).Constructor and Description |
---|
ImmutableReference(T referent)
Create a new ImmutableReference.
|
Modifier and Type | Method and Description |
---|---|
T |
get()
Gets the wrapped object, if there is one.
|
public ImmutableReference(T referent)
referent
- the object to refer to, or null
public T get()
null
if
null
was passed to the constructorCopyright ? 1998-2009 Bela Ban / Red Hat. All Rights Reserved.