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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract NumberAdds this delta to a number.abstract DeltaAdds this delta to another delta.abstract booleanabstract NumbergetBase()Gets the base value.abstract NumberGets the delta value as an object.abstract NumberGets the full value (base + delta) as an object.abstract inthashCode()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()
-