public class DeltaLong extends Delta
Long value and a delta.
This is used when the actual intent of the value is to be an incremental update to an existing value.
| Constructor and Description |
|---|
DeltaLong(long base,
long delta)
A
DeltaLong with the given base and delta. |
| Modifier and Type | Method and Description |
|---|---|
Delta |
add(Delta other)
Adds this delta to another delta.
|
Number |
add(Number other)
Adds this delta to a number.
|
static Number |
deltaOrLong(Number base,
long delta)
|
double |
doubleValue() |
boolean |
equals(Object obj) |
float |
floatValue() |
long |
getBase() |
long |
getDelta() |
Long |
getDeltaValue()
Gets the delta value as an object.
|
Long |
getFullValue()
Gets the full value (base + delta) as an object.
|
int |
hashCode() |
int |
intValue() |
long |
longValue() |
String |
toString() |
byteValue, shortValuepublic static Number deltaOrLong(Number base, long delta)
public Delta add(Delta other)
Deltapublic Number add(Number other)
Deltapublic long getBase()
public long getDelta()
public Long getDeltaValue()
DeltagetDeltaValue in class Deltapublic Long getFullValue()
DeltagetFullValue in class Deltapublic float floatValue()
floatValue in class Numberpublic double doubleValue()
doubleValue in class NumberCopyright © 2016 Nuxeo SA. All rights reserved.