Class SampleList<T extends DoubleValue>
- java.lang.Object
-
- io.heraldprox.herald.sensor.analysis.sampling.SampleList<T>
-
- All Implemented Interfaces:
Filterable<T>
,java.lang.Iterable<Sample<T>>
public class SampleList<T extends DoubleValue> extends java.lang.Object implements java.lang.Iterable<Sample<T>>, Filterable<T>
-
-
Constructor Summary
Constructors Constructor Description SampleList(int size)
SampleList(int size, Sample<T>... samples)
SampleList(Sample<T>... samples)
SampleList(java.util.Iterator<Sample<T>> iterator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Summary<T>
aggregate(Aggregate<T>... aggregates)
void
clear()
void
clearBeforeDate(Date before)
IteratorProxy<T>
filter(Filter filter)
Sample<T>
get(int index)
java.util.Iterator<Sample<T>>
iterator()
Date
latest()
T
latestValue()
void
push(long secondsSinceUnixEpoch, T value)
void
push(Sample<T> sample)
void
push(Date taken, T value)
int
size()
java.lang.String
toString()
-
-
-
Method Detail
-
push
public void push(long secondsSinceUnixEpoch, @NonNull T value)
-
size
public int size()
-
clearBeforeDate
public void clearBeforeDate(@NonNull Date before)
-
clear
public void clear()
-
latest
@Nullable public Date latest()
-
latestValue
@Nullable public T latestValue()
-
iterator
@NonNull public java.util.Iterator<Sample<T>> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<T extends DoubleValue>
-
filter
@NonNull public IteratorProxy<T> filter(@NonNull Filter filter)
- Specified by:
filter
in interfaceFilterable<T extends DoubleValue>
-
toString
@NonNull public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-