Package org.gephi.graph.api.types
Class TimestampStringMap
- java.lang.Object
-
- org.gephi.graph.api.types.TimestampMap<String>
-
- org.gephi.graph.api.types.TimestampStringMap
-
public final class TimestampStringMap extends TimestampMap<String>
Sorted map where keys are timestamp and values string values.
-
-
Constructor Summary
Constructors Constructor Description TimestampStringMap()Default constructor.TimestampStringMap(double[] keys, String[] vals)Constructor with an initial timestamp map.TimestampStringMap(int capacity)Constructor with capacity.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<String>getTypeClass()Returns the value type class.booleanisSupported(Estimator estimator)Returns whetherestimatoris supported.-
Methods inherited from class org.gephi.graph.api.types.TimestampMap
clear, contains, equals, get, get, getTimestamps, hashCode, isEmpty, put, remove, size, toKeysArray, toString, toString, toString, toValuesArray
-
-
-
-
Constructor Detail
-
TimestampStringMap
public TimestampStringMap()
Default constructor.The map is empty with zero capacity.
-
TimestampStringMap
public TimestampStringMap(int capacity)
Constructor with capacity.Using this constructor can improve performances if the number of timestamps is known in advance as it minimizes array resizes.
- Parameters:
capacity- timestamp capacity
-
TimestampStringMap
public TimestampStringMap(double[] keys, String[] vals)Constructor with an initial timestamp map.The
keysarray must be sorted and contain no duplicates.- Parameters:
keys- initial keys contentvals- initial values content
-
-
Method Detail
-
getTypeClass
public Class<String> getTypeClass()
Description copied from interface:TimeMapReturns the value type class.- Specified by:
getTypeClassin interfaceTimeMap<Double,String>- Specified by:
getTypeClassin classTimestampMap<String>- Returns:
- type class
-
isSupported
public boolean isSupported(Estimator estimator)
Description copied from interface:TimeMapReturns whetherestimatoris supported.- Specified by:
isSupportedin interfaceTimeMap<Double,String>- Specified by:
isSupportedin classTimestampMap<String>- Parameters:
estimator- estimator- Returns:
- true if this map supports
estimator
-
-