Class InstantField
java.lang.Object
io.datarouter.model.field.BaseField<T>
io.datarouter.model.field.BasePrimitiveField<Instant,InstantFieldKey>
io.datarouter.model.field.imp.comparable.InstantField
- All Implemented Interfaces:
ByteEncodedField<Instant>,StringEncodedField<Instant>,Field<Instant>,Comparable<Field<Instant>>
public class InstantField extends BasePrimitiveField<Instant,InstantFieldKey>
-
Nested Class Summary
Nested classes/interfaces inherited from class io.datarouter.model.field.BaseField
BaseField.FieldColumnNameComparator -
Field Summary
-
Constructor Summary
Constructors Constructor Description InstantField(InstantFieldKey key, Instant value) -
Method Summary
Modifier and Type Method Description InstantfromBytesButDoNotSet(byte[] bytes, int byteOffset)byte[]getBytes()intgetNumFractionalSeconds()StringgetStringEncodedValue()intnumBytesWithSeparator(byte[] bytes, int byteOffset)InstantparseStringEncodedValueButDoNotSet(String value)Methods inherited from class io.datarouter.model.field.BaseField
fromBytesWithSeparatorButDoNotSet, fromString, getBytesWithSeparator, getPrefix, getPrefixedName, getPreparedStatementValue, getValue, getValueHashCode, getValueString, setPrefix, setUsingReflection, setValue, toString
-
Constructor Details
-
Method Details
-
getStringEncodedValue
-
parseStringEncodedValueButDoNotSet
-
getBytes
public byte[] getBytes() -
fromBytesButDoNotSet
-
numBytesWithSeparator
public int numBytesWithSeparator(byte[] bytes, int byteOffset) -
getNumFractionalSeconds
public int getNumFractionalSeconds()
-