org.omus.data
Class LongField
java.lang.Object
|
+--org.omus.data.DataField
|
+--org.omus.data.LongField
- All Implemented Interfaces:
- java.lang.Cloneable, java.io.Serializable
- public class LongField
- extends DataField
A class for properties or table columns configured as a long,
corresponding to the number datatype in ActionScript. This type of
DataField will only be created if a property or column in a table is
explicitly configured as a long. All other ActionScript numbers that
are converted automatically will be converted to DoubleFields.
- See Also:
- Serialized Form
|
Constructor Summary |
LongField(java.lang.String n,
long v)
Creates a new LongField with the specified name and value. |
|
Method Summary |
void |
accept(FieldVisitor fv)
Accepts a visitor. |
long |
getLong()
Returns the value of this LongField as a long. |
void |
setLong(long newValue)
Sets the value of this LongField to the specified long. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LongField
public LongField(java.lang.String n,
long v)
- Creates a new LongField with the specified name and value.
getLong
public long getLong()
- Returns the value of this LongField as a long.
setLong
public void setLong(long newValue)
- Sets the value of this LongField to the specified long.
accept
public void accept(FieldVisitor fv)
- Description copied from class:
DataField
- Accepts a visitor. The visitor pattern is useful if you want to extend
the functionality of all DataFields without modifying their API.
- Overrides:
accept in class DataField
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object