Module datarush.library
Interface MutablePeriodTokenSequence
-
- All Superinterfaces:
MutableScalarTokenSequence
,MutableTokenSequence
,PeriodTokenSequence
,ScalarTokenAppendable
,ScalarTokenSequence
,ScalarTyped
,TokenAppendable
,TokenSequence
,TokenTyped
- All Known Implementing Classes:
PeriodTokenList
,SparsePeriodTokenList
public interface MutablePeriodTokenSequence extends PeriodTokenSequence, MutableScalarTokenSequence
AMutableTokenSequence
containing period valued data.- See Also:
TokenTypeConstant#PERIOD
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
append(Period value)
Appends the specified period to this sequence.void
append(Period value, int count)
Appends the specified period to this sequence multiple times.void
appendPeriod(int years, int months, int days)
Appends the period specified in years, months, and days to this sequence.void
appendPeriod(int years, int months, int days, int count)
Appends the period specified in years, months, and days to this sequence multiple times.PeriodSettable
getTokenSetter(int index)
Returns a mutator for the given index.void
set(int index, Period value)
Sets the token at the specified position to the given value.void
setPeriod(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, 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.PeriodTokenSequence
getDays, getMonths, getPeriod, getToken, getValues, getYears, newValueIterator
-
Methods inherited from interface com.pervasive.datarush.sequences.scalar.ScalarTokenSequence
getType, 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(Period value)
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
void append(Period value, int count)
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
void set(int index, Period value)
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
PeriodSettable 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.
-
-