Module datarush.library
Interface MutableObjectTokenSequence<O>
-
- Type Parameters:
O
- the type of Java objects in the sequence
- All Superinterfaces:
MutableScalarTokenSequence
,MutableTokenSequence
,ObjectTokenSequence<O>
,ObjectTyped<O>
,ScalarTokenAppendable
,ScalarTokenSequence
,ScalarTyped
,TokenAppendable
,TokenSequence
,TokenTyped
- All Known Implementing Classes:
ObjectTokenList
,SparseObjectTokenList
public interface MutableObjectTokenSequence<O> extends ObjectTokenSequence<O>, MutableScalarTokenSequence
AMutableTokenSequence
containing object valued data.- See Also:
TokenTypeConstant#OBJECT(Class)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
append(O value)
Appends the specified object to this sequence.void
append(O value, int count)
Appends the specified object to this sequence multiple times.ObjectSettable<O>
getTokenSetter(int index)
Returns a mutator for the given index.void
setObject(int index, O value)
Sets the token at the specified position to the given value.-
Methods inherited from interface com.pervasive.datarush.sequences.scalar.MutableScalarTokenSequence
ensureCanonical, getModificationCount
-
Methods inherited from interface com.pervasive.datarush.sequences.MutableTokenSequence
appendNull, appendNull, appendZero, appendZero, fillValue, reset, setNull, setNull, setValue, setValues, setZero, setZero
-
Methods inherited from interface com.pervasive.datarush.sequences.scalar.ObjectTokenSequence
getObject, getToken, getType, getValues, newValueIterator
-
Methods inherited from interface com.pervasive.datarush.sequences.scalar.ScalarTokenSequence
isNull, isZero
-
Methods inherited from interface com.pervasive.datarush.sequences.TokenAppendable
append, append, append, append
-
Methods inherited from interface com.pervasive.datarush.sequences.TokenSequence
compareElement, compareElements, getElementComparator, hashCode, isNull, size, toString
-
-
-
-
Method Detail
-
append
void append(O value)
Appends the specified object to this sequence.- Parameters:
value
- the value to append. Ifnull
, this is equivalent toappendNull()
.
-
append
void append(O value, int count)
Appends the specified object to this sequence multiple times.- Parameters:
value
- the value to append. Ifnull
, this is equivalent toappendNull(count)
.count
- the number of copies to append.
-
setObject
void setObject(int index, O value)
Sets the token at the specified position to the given value.- Parameters:
index
- the position to modifyvalue
- the new value
-
getTokenSetter
ObjectSettable<O> getTokenSetter(int index)
Description copied from interface:MutableTokenSequence
Returns a mutator for the given index.- Specified by:
getTokenSetter
in interfaceMutableScalarTokenSequence
- Specified by:
getTokenSetter
in interfaceMutableTokenSequence
- Parameters:
index
- the position- Returns:
- a mutator for the given index.
-
-