T - public class WrappedObject<T>
extends java.lang.Object
get(). This method use the
default implementation of Object.hashCode() and Object.equals(Object). This ensures there can't be
WrappedObject which are equals. This can be used in the Collection Framework Collection for some
special use.| Constructor and Description |
|---|
WrappedObject(T object)
Creates a new
WrappedObject |
| Modifier and Type | Method and Description |
|---|---|
T |
get()
Retrieves the wrapped object
|
public WrappedObject(T object)
WrappedObjectobject - The object you want to wrap. Must match the generic typepublic T get()