|
JTemporal Home Tutorial |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
V - the type of the valuepublic interface TimeSeries<V>
This is more or less a Map, whose key is an Instant.
Warning, some more methods will be added later.
especially given that for the moment no sorting-related methods
are present (iterators, etc).
| Method Summary | |
|---|---|
boolean |
containsInstant(Instant i)
Returns true if this TimeSeries contains a mapping for the specified Instant. |
V |
get(Instant i)
Gets the value currently associated to the i instant. |
V |
put(Instant i,
V value)
Creates a new entry in this timeseries. |
V |
remove(Instant i)
Removes an entry from this timeseries. |
void |
remove(Period p)
Remove a whole period from the timeseries (optional implementation). |
| Method Detail |
|---|
V put(Instant i,
V value)
i - the instant whom the value must be associated to. Must be not null.value - the value. Must be not null.
java.lang.UnsupportedOperationException - if the TimeSeries is read-onlyV get(Instant i)
get in interface ReadableTemporalAttribute<V>the - instant, key for this value.
V remove(Instant i)
i - the instant to be removed. Must be not null.
java.lang.UnsupportedOperationException - if the TimeSeries is read-onlyvoid remove(Period p)
p - the period enclosing the entries to be removed.
java.lang.UnsupportedOperationException - if the TimeSeries is read-onlyboolean containsInstant(Instant i)
i - instant whose presence in this TimeSeries is to be tested.
|
JTemporal Home Tutorial |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||