Class SampleList<T extends DoubleValue>

    • Constructor Detail

      • SampleList

        public SampleList​(int size)
      • SampleList

        public SampleList​(int size,
                          @NonNull
                          Sample<T>... samples)
      • SampleList

        public SampleList​(@NonNull
                          Sample<T>... samples)
      • SampleList

        public SampleList​(@NonNull
                          java.util.Iterator<Sample<T>> iterator)
    • Method Detail

      • push

        public void push​(@NonNull
                         Sample<T> sample)
      • push

        public void push​(@NonNull
                         Date taken,
                         @NonNull
                         T value)
      • push

        public void push​(long secondsSinceUnixEpoch,
                         @NonNull
                         T value)
      • size

        public int size()
      • get

        @Nullable
        public Sample<T> get​(int index)
      • 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 interface java.lang.Iterable<T extends DoubleValue>
      • toString

        @NonNull
        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • aggregate

        @NonNull
        public Summary<T> aggregate​(@NonNull
                                    Aggregate<T>... aggregates)