Package db
Class IntField
- java.lang.Object
-
- db.Field
-
- db.IntField
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(Field o)
boolean
equals(java.lang.Object obj)
byte[]
getBinaryData()
Get data as a byte array.protected byte
getFieldType()
Return Field instance type as an integer valueint
getIntValue()
Get field as an integer value.long
getLongValue()
Get field as a long value.java.lang.String
getValueAsString()
int
hashCode()
Field
newField()
Create new instance of this field type.Field
newField(Field fieldValue)
Create new instance of this field type.void
setIntValue(int value)
Set field's integer value.void
setLongValue(long value)
Set field's long value.java.lang.String
toString()
-
Methods inherited from class db.Field
getBooleanValue, getByteValue, getShortValue, getString, isVariableLength, setBinaryData, setBooleanValue, setByteValue, setShortValue, setString
-
-
-
-
Method Detail
-
getIntValue
public int getIntValue()
Description copied from class:Field
Get field as an integer value.- Overrides:
getIntValue
in classField
- Returns:
- integer value
- See Also:
Field.getIntValue()
-
setIntValue
public void setIntValue(int value)
Description copied from class:Field
Set field's integer value.- Overrides:
setIntValue
in classField
- Parameters:
value
- integer value- See Also:
Field.setIntValue(int)
-
getFieldType
protected byte getFieldType()
Description copied from class:Field
Return Field instance type as an integer value- Specified by:
getFieldType
in classField
- See Also:
Field.getFieldType()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
- See Also:
Object.toString()
-
getValueAsString
public java.lang.String getValueAsString()
- Specified by:
getValueAsString
in classField
-
equals
public boolean equals(java.lang.Object obj)
-
compareTo
public int compareTo(Field o)
- See Also:
Comparable.compareTo(java.lang.Object)
-
newField
public Field newField(Field fieldValue)
Description copied from class:Field
Create new instance of this field type.- Specified by:
newField
in classField
- Parameters:
fieldValue
- initial field value.- Returns:
- long
- See Also:
Field.newField(docking.widgets.fieldpanel.Field)
-
newField
public Field newField()
Description copied from class:Field
Create new instance of this field type.- Specified by:
newField
in classField
- Returns:
- long
- See Also:
Field.newField()
-
getLongValue
public long getLongValue()
Description copied from class:Field
Get field as a long value. All fixed-length field objects must implement this method- Overrides:
getLongValue
in classField
- Returns:
- long value
- See Also:
Field.getLongValue()
-
setLongValue
public void setLongValue(long value)
Description copied from class:Field
Set field's long value. All fixed-length field objects must implement this method- Overrides:
setLongValue
in classField
- Parameters:
value
- long value- See Also:
Field.setLongValue(long)
-
getBinaryData
public byte[] getBinaryData()
Description copied from class:Field
Get data as a byte array.- Specified by:
getBinaryData
in classField
- Returns:
- byte[]
- See Also:
Field.getBinaryData()
-
-