Package com.globalmentor.model
Class ObjectDecorator<T>
java.lang.Object
com.globalmentor.model.AbstractObjectDecorator<T>
com.globalmentor.model.ObjectDecorator<T>
- Type Parameters:
T
- The type of object being decorated.
An object that decorates another object, preserving the
Object.hashCode()
and Object.equals(Object)
of the decorated object. Equality is only
supported for exact top-level types. This class does not permit a null
decorated object.- Author:
- Garret Wilson
-
Constructor Details
-
ObjectDecorator
Decorated object constructor.- Parameters:
decoratedObject
- The object to decorate.- Throws:
NullPointerException
- if the given object isnull
.
-