public abstract class Delta extends Number
This is used when the actual intent of the value is to be an incremental update to an existing value.
Constructor and Description |
---|
Delta() |
Modifier and Type | Method and Description |
---|---|
abstract Delta |
add(Delta other)
Adds this delta to another delta.
|
abstract Number |
add(Number other)
Adds this delta to a number.
|
abstract boolean |
equals(Object obj) |
abstract Number |
getBase()
Gets the base value.
|
abstract Number |
getDeltaValue()
Gets the delta value as an object.
|
abstract Number |
getFullValue()
Gets the full value (base + delta) as an object.
|
abstract int |
hashCode() |
byteValue, doubleValue, floatValue, intValue, longValue, shortValue
public Delta()
public abstract Number getFullValue()
public abstract Number getDeltaValue()
public abstract Delta add(Delta other)
other
- the other deltapublic abstract Number add(Number other)
other
- the numberCopyright © 2017 Nuxeo. All rights reserved.