Package org.reactfx.util
Class WrapperBase<T>
- java.lang.Object
-
- org.reactfx.util.WrapperBase<T>
-
- Type Parameters:
T
- type of the wrapped value.
- Direct Known Subclasses:
ChangeListenerWrapper
,ChangeListenerWrapper
,ChangeObserverWrapper
,InvalidationListenerWrapper
,InvalidationListenerWrapper
,ModificationObserverWrapper
public abstract class WrapperBase<T> extends java.lang.Object
Base class for value-based wrappers, that is wrappers that implementequals(Object)
andhashCode()
solely by comparing/hashing the wrapped values.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
WrapperBase(T delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object that)
T
getWrappedValue()
int
hashCode()
-
-
-
Field Detail
-
delegate
private final T delegate
-
-
Constructor Detail
-
WrapperBase
protected WrapperBase(T delegate)
- Parameters:
delegate
- wrapped value.
-
-
Method Detail
-
getWrappedValue
public final T getWrappedValue()
-
equals
public final boolean equals(java.lang.Object that)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public final int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-