public final class TimestampBooleanMap extends TimestampMap<Boolean>
| Constructor and Description |
|---|
TimestampBooleanMap()
Default constructor.
|
TimestampBooleanMap(double[] keys,
boolean[] vals)
Constructor with an initial timestamp map.
|
TimestampBooleanMap(int capacity)
Constructor with capacity.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBoolean(double timestamp)
Get the value for the given timestamp.
|
boolean |
getBoolean(double timestamp,
boolean defaultValue)
Get the value for the given timestamp.
|
Class<Boolean> |
getTypeClass()
Returns the value type class.
|
boolean |
isSupported(Estimator estimator)
Returns whether
estimator is supported. |
boolean[] |
toBooleanArray()
Returns an array of all values in this map.
|
clear, contains, equals, get, get, getTimestamps, hashCode, isEmpty, put, remove, size, toKeysArray, toString, toString, toString, toValuesArraypublic TimestampBooleanMap()
The map is empty with zero capacity.
public TimestampBooleanMap(int capacity)
Using this constructor can improve performances if the number of timestamps is known in advance as it minimizes array resizes.
capacity - timestamp capacitypublic TimestampBooleanMap(double[] keys,
boolean[] vals)
The keys array must be sorted and contain no duplicates.
keys - initial keys contentvals - initial values contentpublic boolean getBoolean(double timestamp)
timestamp - timestampIllegalArgumentException - if the element doesn't existpublic boolean getBoolean(double timestamp,
boolean defaultValue)
Return defaultValue if the value is not found.
timestamp - timestampdefaultValue - default valuepublic Class<Boolean> getTypeClass()
TimeMapgetTypeClass in interface TimeMap<Double,Boolean>getTypeClass in class TimestampMap<Boolean>public boolean[] toBooleanArray()
This method may return a reference to the underlying array so clients should make a copy if the array is written to.
public boolean isSupported(Estimator estimator)
TimeMapestimator is supported.isSupported in interface TimeMap<Double,Boolean>isSupported in class TimestampMap<Boolean>estimator - estimatorestimatorCopyright © 2007–2015 Gephi Consortium. All rights reserved.