Package org.jgroups.util
Class ImmutableReference<T>
java.lang.Object
org.jgroups.util.ImmutableReference<T>
Simple class that holds an immutable reference to another object (or to
null).- Author:
- Brian Stansberry
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ImmutableReference
Create a new ImmutableReference.- Parameters:
referent- the object to refer to, ornull
-
-
Method Details
-
get
Gets the wrapped object, if there is one.- Returns:
- the object passed to the constructor, or
nullifnullwas passed to the constructor
-