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, shortValue
public static Number deltaOrLong(Number base, long delta)
public Delta add(Delta other)
Delta
public Number add(Number other)
Delta
public long getBase()
public long getDelta()
public Long getDeltaValue()
Delta
getDeltaValue
in class Delta
public Long getFullValue()
Delta
getFullValue
in class Delta
public float floatValue()
floatValue
in class Number
public double doubleValue()
doubleValue
in class Number
Copyright © 2015 Nuxeo SA. All rights reserved.