Package org.openjdk.jmc.common.xydata
Class DefaultTimestampedData
java.lang.Object
org.openjdk.jmc.common.xydata.DefaultXYData<Long,Number>
org.openjdk.jmc.common.xydata.DefaultTimestampedData
- All Implemented Interfaces:
BoundedList.INode<DefaultTimestampedData>
,ITimestampedData
,IXYData<Long,
Number>
public class DefaultTimestampedData
extends DefaultXYData<Long,Number>
implements ITimestampedData, BoundedList.INode<DefaultTimestampedData>
A default implementation of
ITimestampedData
(which is an IXYData
of epoch ns and
natural numbers).
It implements BoundedList.INode
in order to save some memory when placed in a BoundedList
although this dependency is not really clean and should eventually be fixed.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.openjdk.jmc.common.xydata.DefaultXYData
getX, getY
-
Constructor Details
-
DefaultTimestampedData
- Parameters:
x
- a timestamp in epoch nsy
- a natural number
-
-
Method Details
-
toString
-
getNext
Description copied from interface:BoundedList.INode
Get the next node in the list.- Specified by:
getNext
in interfaceBoundedList.INode<DefaultTimestampedData>
- Returns:
- the next node
-
setNext
Description copied from interface:BoundedList.INode
Set the next node in the list.- Specified by:
setNext
in interfaceBoundedList.INode<DefaultTimestampedData>
- Parameters:
next
- the next node
-
getValue
Description copied from interface:BoundedList.INode
Get the value of this node.- Specified by:
getValue
in interfaceBoundedList.INode<DefaultTimestampedData>
- Returns:
- the node value
-