Package com.helixframework.generics
Class GenericWrapper<T>
java.lang.Object
com.helixframework.generics.GenericWrapper<T>
- Type Parameters:
T- type of wrapped object
- All Implemented Interfaces:
Wrapper
Generic wrapper implementation.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
GenericWrapper
Wraps the supplied object.- Parameters:
wrapped- object to wrap
-
-
Method Details
-
unwrap
Description copied from interface:WrapperUnwraps the wrapped object. -
isWrapperFor
Description copied from interface:WrapperChecks if this instance ofWrapperis a wrapper of the specified type.- Specified by:
isWrapperForin interfaceWrapper- Parameters:
clazz- wrapped type- Returns:
trueif the this wrapper is a wrapper for the specified type; otherwisefalse
-
equals
-
hashCode
public int hashCode() -
toString
-