public class BigDecimalValueType extends Object implements ValueObjectType<BigDecimal,BigDecimal>
Constructor and Description |
---|
BigDecimalValueType() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(BigDecimal value1,
BigDecimal value2)
Allows to use special logic to compare values for equality
as in rare cases it is not suffice to use default equals() method.
|
BigDecimal |
fromJavaObject(BigDecimal object) |
Class<BigDecimal> |
getTargetType() |
Class<BigDecimal> |
getValueType() |
String |
toCacheKey(BigDecimal object)
Returned value should be same for objects that is logically equal.
|
BigDecimal |
toJavaObject(BigDecimal value) |
public Class<BigDecimal> getTargetType()
getTargetType
in interface ValueObjectType<BigDecimal,BigDecimal>
public Class<BigDecimal> getValueType()
getValueType
in interface ValueObjectType<BigDecimal,BigDecimal>
public BigDecimal toJavaObject(BigDecimal value)
toJavaObject
in interface ValueObjectType<BigDecimal,BigDecimal>
value
- of type Tpublic BigDecimal fromJavaObject(BigDecimal object)
fromJavaObject
in interface ValueObjectType<BigDecimal,BigDecimal>
object
- java objectpublic String toCacheKey(BigDecimal object)
ValueObjectType
toCacheKey
in interface ValueObjectType<BigDecimal,BigDecimal>
public boolean equals(BigDecimal value1, BigDecimal value2)
ValueObjectType
Objects.equals(Object, Object)
method.equals
in interface ValueObjectType<BigDecimal,BigDecimal>
value1
- to comparevalue2
- to compareCopyright © 2001–2021 Apache Cayenne. All rights reserved.