Package org.gephi.graph.api.types
Class IntervalStringMap
- java.lang.Object
-
- org.gephi.graph.api.types.IntervalMap<String>
-
- org.gephi.graph.api.types.IntervalStringMap
-
public final class IntervalStringMap extends IntervalMap<String>
Sorted map where keys are intervals and values string values.
-
-
Constructor Summary
Constructors Constructor Description IntervalStringMap()Default constructor.IntervalStringMap(double[] keys, String[] vals)Constructor with an initial interval map.IntervalStringMap(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.IntervalMap
clear, contains, contains, equals, get, get, getIntervals, hashCode, isEmpty, put, remove, size, toKeysArray, toString, toString, toString, toValuesArray
-
-
-
-
Constructor Detail
-
IntervalStringMap
public IntervalStringMap()
Default constructor.The map is empty with zero capacity.
-
IntervalStringMap
public IntervalStringMap(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
-
IntervalStringMap
public IntervalStringMap(double[] keys, String[] vals)Constructor with an initial interval map.The
keysarray must be in the same format returned byIntervalMap.getIntervals().- Parameters:
keys- initial keys contentvals- initial values content
-
-