com.neeve.sto
Class StoVariableLengthField<T>

java.lang.Object
  extended by com.neeve.util.UtlListElement
      extended by com.neeve.sto.StoField
          extended by com.neeve.sto.StoVariableLengthField<T>
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
StoBooleanArrayField, StoByteArrayField, StoCompoundArrayField, StoCompoundField, StoDoubleArrayField, StoFloatArrayField, StoIntArrayField, StoLongArrayField, StoShortArrayField, StoStringArrayField, StoStringField

public abstract class StoVariableLengthField<T>
extends StoField

Base class for all variable length fields.

Threading:
STO fields are not safe for concurrent access by multiple threads.

Nested Class Summary
 
Nested classes/interfaces inherited from class com.neeve.sto.StoField
StoField.Type
 
Field Summary
 
Fields inherited from class com.neeve.util.UtlListElement
count, head, next, prev
 
Method Summary
 T getValue()
          Set the field value
 boolean isVariableLength()
          Implementation of StoField.isVariableLength()
 void reset()
          Implementation of StoField.reset()
 void setValue(T val)
          Set the field value
 
Methods inherited from class com.neeve.sto.StoField
changeBackingBuffer, clearBackingBuffer, clone, contentsEquals, create, getBackingBuffer, getHeader, getLength, getName, getSerializedLength, getSerializedLength, getType, getVersion, isNamed, setBackingBuffer, shiftForHeader, sync, toString
 
Methods inherited from class com.neeve.util.UtlListElement
count, insertAfter, insertBefore, isLinked, next, previous, unlink, wipe
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

isVariableLength

public final boolean isVariableLength()
Implementation of StoField.isVariableLength()

Specified by:
isVariableLength in class StoField

reset

public final void reset()
Implementation of StoField.reset()

Specified by:
reset in class StoField

setValue

public final void setValue(T val)
Set the field value

Parameters:
val - The value to set.

getValue

public final T getValue()
Set the field value



Copyright © 2015 Neeve Research, LLC. All Rights Reserved.