public interface EqualsWrapper<T>
This class is using Wrapper pattern and Prototype pattern.
It's a prototype, so that client can create a single prototype instance and set to BeanCoderContext.
At encoding runtime, the actually wrapper object will be cloned from the prototype object.
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
T |
getObject() |
Class<T> |
getType()
Get type could return null, to avoid unnecessary dependency.
|
int |
hashCode() |
EqualsWrapper<T> |
newWrapper(T obj)
Prototype clone method with actually wrapped object
|
Class<T> getType()
EqualsWrapper<T> newWrapper(T obj)
T getObject()
Copyright © 2021. All rights reserved.