Package db
Class FixedField
- java.lang.Object
-
- db.Field
-
- db.BinaryField
-
- db.FixedField
-
- All Implemented Interfaces:
java.lang.Comparable<Field>
- Direct Known Subclasses:
FixedField10
public abstract class FixedField extends BinaryField
FixedField
provides an abstract implementation of a fixed-length binary field.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class db.Field
Field.UnsupportedFieldException
-
-
Field Summary
Fields Modifier and Type Field Description static FixedField10
INSTANCE
-
Fields inherited from class db.BinaryField
data
-
Fields inherited from class db.Field
EMPTY_ARRAY
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract FixedField
copyField()
Create new instance of this field with the same value.boolean
isVariableLength()
abstract FixedField
newField()
Create new instance of this field type.-
Methods inherited from class db.BinaryField
compareTo, equals, getBinaryData, getValueAsString, getValueAsString, hashCode, setBinaryData, toString
-
Methods inherited from class db.Field
canIndex, getBooleanValue, getByteValue, getIntValue, getLongValue, getShortValue, getString, isSameType, setBooleanValue, setByteValue, setIntValue, setLongValue, setShortValue, setString
-
-
-
-
Field Detail
-
INSTANCE
public static final FixedField10 INSTANCE
-
-
Method Detail
-
isVariableLength
public final boolean isVariableLength()
- Overrides:
isVariableLength
in classBinaryField
- Returns:
- true if a Field instance is variable length, else false.
-
copyField
public abstract FixedField copyField()
Description copied from class:Field
Create new instance of this field with the same value.- Overrides:
copyField
in classBinaryField
- Returns:
- new field instance with same value
-
newField
public abstract FixedField newField()
Description copied from class:Field
Create new instance of this field type.- Overrides:
newField
in classBinaryField
- Returns:
- new field instance with undefined initial value
-
-