Package db
Class IntField
- java.lang.Object
-
- db.Field
-
- db.IntField
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class db.Field
Field.UnsupportedFieldException
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Field o)booleanequals(java.lang.Object obj)byte[]getBinaryData()Get data as a byte array.protected bytegetFieldType()Return Field instance type as an integer valueintgetIntValue()Get field as an integer value.longgetLongValue()Get field as a long value.java.lang.StringgetValueAsString()inthashCode()FieldnewField()Create new instance of this field type.FieldnewField(Field fieldValue)Create new instance of this field type.voidsetIntValue(int value)Set field's integer value.voidsetLongValue(long value)Set field's long value.java.lang.StringtoString()-
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:FieldGet field as an integer value.- Overrides:
getIntValuein classField- Returns:
- integer value
- See Also:
Field.getIntValue()
-
setIntValue
public void setIntValue(int value)
Description copied from class:FieldSet field's integer value.- Overrides:
setIntValuein classField- Parameters:
value- integer value- See Also:
Field.setIntValue(int)
-
getFieldType
protected byte getFieldType()
Description copied from class:FieldReturn Field instance type as an integer value- Specified by:
getFieldTypein classField- See Also:
Field.getFieldType()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object- See Also:
Object.toString()
-
getValueAsString
public java.lang.String getValueAsString()
- Specified by:
getValueAsStringin 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:FieldCreate new instance of this field type.- Specified by:
newFieldin classField- Parameters:
fieldValue- initial field value.- Returns:
- long
- See Also:
Field.newField(docking.widgets.fieldpanel.Field)
-
newField
public Field newField()
Description copied from class:FieldCreate new instance of this field type.- Specified by:
newFieldin classField- Returns:
- long
- See Also:
Field.newField()
-
getLongValue
public long getLongValue()
Description copied from class:FieldGet field as a long value. All fixed-length field objects must implement this method- Overrides:
getLongValuein classField- Returns:
- long value
- See Also:
Field.getLongValue()
-
setLongValue
public void setLongValue(long value)
Description copied from class:FieldSet field's long value. All fixed-length field objects must implement this method- Overrides:
setLongValuein classField- Parameters:
value- long value- See Also:
Field.setLongValue(long)
-
getBinaryData
public byte[] getBinaryData()
Description copied from class:FieldGet data as a byte array.- Specified by:
getBinaryDatain classField- Returns:
- byte[]
- See Also:
Field.getBinaryData()
-
-