public abstract class AbstractNumberReference<T extends Number> extends Number implements ByReference<T>
Modifier | Constructor and Description |
---|---|
protected |
AbstractNumberReference(T value) |
Modifier and Type | Method and Description |
---|---|
byte |
byteValue() |
protected static <T extends Number> |
checkNull(T value) |
double |
doubleValue() |
float |
floatValue() |
T |
getValue()
Gets the current value the reference points to.
|
int |
intValue() |
long |
longValue() |
short |
shortValue() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
fromNative, nativeSize, toNative
protected AbstractNumberReference(T value)
protected static <T extends Number> T checkNull(T value)
public T getValue()
getValue
in interface ByReference<T extends Number>
public final short shortValue()
shortValue
in class Number
public final float floatValue()
floatValue
in class Number
public final double doubleValue()
doubleValue
in class Number
Copyright © 2017. All rights reserved.