V - type of user's custom object.T - type that custom object will be serialized to/from
should be backed by appropriate ExtendedType.public interface ValueObjectType<V,T>
ExtendedType.| Modifier and Type | Method and Description |
|---|---|
default boolean |
equals(V value1,
V value2)
Allows to use special logic to compare values for equality
as in rare cases it is not suffice to use default equals() method.
|
T |
fromJavaObject(V object) |
Class<T> |
getTargetType() |
Class<V> |
getValueType() |
String |
toCacheKey(V object)
Returned value should be same for objects that is logically equal.
|
V |
toJavaObject(T value) |
String toCacheKey(V object)
default boolean equals(V value1, V value2)
Objects.equals(Object, Object) method.value1 - to comparevalue2 - to compareCopyright © 2001–2021 Apache Cayenne. All rights reserved.