T
- Type of the elements in this time series.public class TimeSeries<T extends ITimeSeriesPoint> extends java.lang.Object implements java.lang.Iterable<T>, IBackwardsIterable<T>
Constructor and Description |
---|
TimeSeries()
Constructs an empty time series.
|
TimeSeries(TimeSeries<T> timeSeries)
Constructs a copy of the specified time series.
|
Modifier and Type | Method and Description |
---|---|
void |
appendBegin(T timeSeriesPoint)
Appends a point at the end of this time series, so the point is the new
earliest point in this time series.
|
void |
appendEnd(T timeSeriesPoint)
Appends a point at the end of this time series, so the point is the new
latest point in this time series.
|
java.util.Iterator<T> |
backwardsIterator()
Returns an iterator over the time series points in this time series.
|
ITimeSeriesPoint |
getBegin()
Returns the first/earliest point of this time series, or
if this time series is empty.
|
ITimeSeriesPoint |
getEnd()
Returns the last/latest point of this time series, or
if this time series is empty.
|
boolean |
isEmpty()
Returns
true if this time series contains no time series points. |
java.util.Iterator<T> |
iterator()
Returns an iterator over the time series points in this time series.
|
ITimeSeriesPoint |
removeBegin()
Retrieves and removes the first/earliest point of this time series, or returns
if this time series is empty.
|
ITimeSeriesPoint |
removeEnd()
Retrieves and removes the last/latest point of this time series, or returns
if this time series is empty.
|
int |
size()
Returns the number of time series points in this time series.
|
java.util.stream.Stream<T> |
stream()
Returns a sequential
Stream with this time series as its source. |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
backwards
public TimeSeries()
public TimeSeries(TimeSeries<T> timeSeries)
public void appendBegin(T timeSeriesPoint)
public void appendEnd(T timeSeriesPoint)
public ITimeSeriesPoint getBegin()
public ITimeSeriesPoint getEnd()
public ITimeSeriesPoint removeBegin()
public ITimeSeriesPoint removeEnd()
public java.util.Iterator<T> iterator()
iterator
in interface java.lang.Iterable<T extends ITimeSeriesPoint>
public java.util.Iterator<T> backwardsIterator()
backwardsIterator
in interface IBackwardsIterable<T extends ITimeSeriesPoint>
public java.util.stream.Stream<T> stream()
Stream
with this time series as its source.public int size()
public boolean isEmpty()
true
if this time series contains no time series points.public java.lang.String toString()
toString
in class java.lang.Object
Copyright 2020 Kieker Project, http://kieker-monitoring.net