Package org.nuxeo.ecm.core.api.model
Class Delta
java.lang.Object
java.lang.Number
org.nuxeo.ecm.core.api.model.Delta
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DeltaLong
Value holding a base value and a delta.
This is used when the actual intent of the value is to be an incremental update to an existing value.
- Since:
- 6.0
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract Number
Adds this delta to a number.abstract Delta
Adds this delta to another delta.abstract boolean
abstract Number
getBase()
Gets the base value.abstract Number
Gets the delta value as an object.abstract Number
Gets the full value (base + delta) as an object.abstract int
hashCode()
Methods inherited from class java.lang.Number
byteValue, doubleValue, floatValue, intValue, longValue, shortValue
-
Constructor Details
-
Delta
public Delta()
-
-
Method Details
-
getFullValue
Gets the full value (base + delta) as an object.- Returns:
- the full value
-
getDeltaValue
Gets the delta value as an object.- Returns:
- the delta value
-
getBase
Gets the base value.- Returns:
- the base value
- Since:
- 8.3
-
add
Adds this delta to another delta.- Parameters:
other
- the other delta- Returns:
- the added delta
-
add
Adds this delta to a number.- Parameters:
other
- the number- Returns:
- the resulting number
-
equals
-
hashCode
public abstract int hashCode()
-