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.
public class ObjectDecorator<T> extends AbstractObjectDecorator<T>
An object that decorates another object, preserving theObject.hashCode()
andObject.equals(Object)
of the decorated object. Equality is only supported for exact top-level types. This class does not permit anull
decorated object.- Author:
- Garret Wilson
-
-
Constructor Summary
Constructors Constructor Description ObjectDecorator(T decoratedObject)
Decorated object constructor.
-
-
-
Constructor Detail
-
ObjectDecorator
public ObjectDecorator(T decoratedObject)
Decorated object constructor.- Parameters:
decoratedObject
- The object to decorate.- Throws:
java.lang.NullPointerException
- if the given object isnull
.
-
-