net.sf.farrago.type.runtime
Class NullablePrimitive.NullableLong
java.lang.Object
net.sf.farrago.type.runtime.NullablePrimitive
net.sf.farrago.type.runtime.NullablePrimitive.NullableLong
- All Implemented Interfaces:
- AssignableValue, DataValue, NullableValue
- Direct Known Subclasses:
- EncodedSqlDecimal.AssignableDecimal
- Enclosing class:
- NullablePrimitive
public static class NullablePrimitive.NullableLong
- extends NullablePrimitive
Nullable wrapper for long.
Field Summary |
long |
value
Wrapped primitive |
Method Summary |
void |
assignFrom(Object o)
Assigns value from an Object. |
protected void |
setLong(long n)
Assignment from non-null long value. |
protected void |
setNumber(Number number)
Assignment from abstract Number object. |
value
public long value
- Wrapped primitive
NullablePrimitive.NullableLong
public NullablePrimitive.NullableLong()
setNumber
protected void setNumber(Number number)
- Description copied from class:
NullablePrimitive
- Assignment from abstract Number object.
- Specified by:
setNumber
in class NullablePrimitive
- Parameters:
number
- a new non-null value to be assigned
setLong
protected void setLong(long n)
- Description copied from class:
NullablePrimitive
- Assignment from non-null long value.
- Specified by:
setLong
in class NullablePrimitive
- Parameters:
n
- long value to assign
assignFrom
public void assignFrom(Object o)
- Description copied from interface:
AssignableValue
- Assigns value from an Object.
- Specified by:
assignFrom
in interface AssignableValue
- Overrides:
assignFrom
in class NullablePrimitive
- Parameters:
o
- value to assign, or null to set null