Class PrimitiveIntegerArrayField
java.lang.Object
io.datarouter.model.field.BaseField<int[]>
io.datarouter.model.field.imp.array.PrimitiveIntegerArrayField
- All Implemented Interfaces:
ByteEncodedField<int[]>,StringEncodedField<int[]>,Field<int[]>,Comparable<Field<int[]>>
public class PrimitiveIntegerArrayField extends BaseField<int[]>
-
Nested Class Summary
Nested classes/interfaces inherited from class io.datarouter.model.field.BaseField
BaseField.FieldColumnNameComparator -
Field Summary
-
Constructor Summary
Constructors Constructor Description PrimitiveIntegerArrayField(PrimitiveIntegerArrayFieldKey key, int[] value) -
Method Summary
Modifier and Type Method Description intcompareTo(Field<int[]> field)int[]fromBytesButDoNotSet(byte[] bytes, int byteOffset)byte[]getBytes()PrimitiveIntegerArrayFieldKeygetKey()StringgetStringEncodedValue()intgetValueHashCode()StringgetValueString()intnumBytesWithSeparator(byte[] bytes, int byteOffset)int[]parseStringEncodedValueButDoNotSet(String value)Methods inherited from class io.datarouter.model.field.BaseField
fromBytesWithSeparatorButDoNotSet, fromString, getBytesWithSeparator, getPrefix, getPrefixedName, getPreparedStatementValue, getValue, setPrefix, setUsingReflection, setValue, toString
-
Constructor Details
-
Method Details
-
getKey
-
getValueString
- Specified by:
getValueStringin interfaceField<int[]>- Overrides:
getValueStringin classBaseField<int[]>- Returns:
- a human-readable string for use in toString() methods. Should not be used for persistence.
-
getValueHashCode
public int getValueHashCode()- Specified by:
getValueHashCodein interfaceField<int[]>- Overrides:
getValueHashCodein classBaseField<int[]>
-
compareTo
-
getStringEncodedValue
-
parseStringEncodedValueButDoNotSet
-
getBytes
public byte[] getBytes() -
fromBytesButDoNotSet
public int[] fromBytesButDoNotSet(byte[] bytes, int byteOffset) -
numBytesWithSeparator
public int numBytesWithSeparator(byte[] bytes, int byteOffset)
-