Module datarush.library
Interface MutablePeriodTokenSequence
- All Superinterfaces:
MutableScalarTokenSequence,MutableTokenSequence,PeriodTokenSequence,ScalarTokenAppendable,ScalarTokenSequence,ScalarTyped,TokenAppendable,TokenSequence,TokenTyped
- All Known Implementing Classes:
PeriodTokenList,SparsePeriodTokenList
A
MutableTokenSequence containing period valued data.- See Also:
-
TokenTypeConstant#PERIOD
-
Method Summary
Modifier and TypeMethodDescriptionvoidAppends the specified period to this sequence.voidAppends the specified period to this sequence multiple times.voidappendPeriod(int years, int months, int days) Appends the period specified in years, months, and days to this sequence.voidappendPeriod(int years, int months, int days, int count) Appends the period specified in years, months, and days to this sequence multiple times.getTokenSetter(int index) Returns a mutator for the given index.voidSets the token at the specified position to the given value.voidsetPeriod(int index, int years, int months, int days) Sets the token at the specified position to the given value.Methods inherited from interface com.pervasive.datarush.sequences.scalar.MutableScalarTokenSequence
ensureCanonical, getModificationCountMethods inherited from interface com.pervasive.datarush.sequences.MutableTokenSequence
appendNull, appendNull, appendZero, appendZero, fillValue, reset, setNull, setNull, setValue, setValues, setZero, setZeroMethods inherited from interface com.pervasive.datarush.sequences.scalar.PeriodTokenSequence
getDays, getMonths, getPeriod, getToken, getValues, getYears, newValueIteratorMethods inherited from interface com.pervasive.datarush.sequences.scalar.ScalarTokenSequence
getType, isNull, isZeroMethods inherited from interface com.pervasive.datarush.sequences.TokenAppendable
append, append, append, appendMethods inherited from interface com.pervasive.datarush.sequences.TokenSequence
compareElement, compareElements, getElementComparator, hashCode, isNull, size, toString
-
Method Details
-
append
Appends the specified period to this sequence.- Parameters:
value- the value to append. Ifnull, this is equivalent toappendNull().
-
appendPeriod
void appendPeriod(int years, int months, int days) Appends the period specified in years, months, and days to this sequence.- Parameters:
years- the number of years in the period.months- the number of months in the period.days- the number of days in the period.
-
append
Appends the specified period to this sequence multiple times.- Parameters:
value- the value to append. Ifnull, this is equivalent toappendNull().count- the number of copies to append.
-
appendPeriod
void appendPeriod(int years, int months, int days, int count) Appends the period specified in years, months, and days to this sequence multiple times.- Parameters:
years- the number of years in the period.months- the number of months in the period.days- the number of days in the period.count- the number of copies to append.
-
set
Sets the token at the specified position to the given value.- Parameters:
index- the position to modifyvalue- the period to which to set the token.
-
setPeriod
void setPeriod(int index, int years, int months, int days) Sets the token at the specified position to the given value.- Parameters:
index- the position to modifyyears- the number of years in the period.months- the number of months in the period.days- the number of days in the period.
-
getTokenSetter
Description copied from interface:MutableTokenSequenceReturns a mutator for the given index.- Specified by:
getTokenSetterin interfaceMutableScalarTokenSequence- Specified by:
getTokenSetterin interfaceMutableTokenSequence- Parameters:
index- the position- Returns:
- a mutator for the given index.
-