K
- key typeV
- value typepublic interface TimeMap<K,V>
Modifier and Type | Method and Description |
---|---|
void |
clear()
Empties this map.
|
boolean |
contains(K key)
Returns true if this map contains the given key.
|
Object |
get(Interval interval,
Estimator estimator)
Get the estimated value for the given interval.
|
V |
get(K key,
V defaultValue)
Get the value for the given key.
|
Class<V> |
getTypeClass()
Returns the value type class.
|
boolean |
isEmpty()
Returns true if this map is empty.
|
boolean |
isSupported(Estimator estimator)
Returns whether
estimator is supported. |
boolean |
put(K key,
V value)
Put the value at the given key.
|
boolean |
remove(K key)
Remove the value at the given key.
|
int |
size()
Returns the size.
|
K[] |
toKeysArray()
Returns all the keys as an array.
|
V[] |
toValuesArray()
Returns all the values as an array.
|
boolean put(K key, V value)
key
- keyvalue
- valueboolean remove(K key)
key
- keyObject get(Interval interval, Estimator estimator)
The estimator is used to determine the way multiple interval values are merged together (e.g average, first, median).
interval
- interval queryestimator
- estimator usedV get(K key, V defaultValue)
Return defaultValue
if the value is not found.
key
- keydefaultValue
- default valueV[] toValuesArray()
K[] toKeysArray()
boolean contains(K key)
key
- keyvoid clear()
boolean isSupported(Estimator estimator)
estimator
is supported.estimator
- estimatorestimator
int size()
boolean isEmpty()
Copyright © 2007–2015 Gephi Consortium. All rights reserved.