Class IntervalStringMap

    • 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 keys array must be in the same format returned by IntervalMap.getIntervals().

        Parameters:
        keys - initial keys content
        vals - initial values content
    • Method Detail

      • getTypeClass

        public Class<String> getTypeClass()
        Description copied from interface: TimeMap
        Returns the value type class.
        Returns:
        type class
      • isSupported

        public boolean isSupported​(Estimator estimator)
        Description copied from interface: TimeMap
        Returns whether estimator is supported.
        Parameters:
        estimator - estimator
        Returns:
        true if this map supports estimator