Class CycleResultsSegmentReadable
- java.lang.Object
-
- io.engineblock.activityapi.cyclelog.buffers.results.CycleResultsSegmentReadable
-
- All Implemented Interfaces:
CycleResultsSegment,java.lang.Comparable<CycleResultsSegment>,java.lang.Iterable<CycleResult>
public class CycleResultsSegmentReadable extends java.lang.Object implements CycleResultsSegment
Implements a cycle result segment in a basic buffer that contains the cycle and the result in long, byte format.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.engineblock.activityapi.cyclelog.buffers.results.CycleResultsSegment
CycleResultsSegment.EmptySegment
-
-
Field Summary
-
Fields inherited from interface io.engineblock.activityapi.cyclelog.buffers.results.CycleResultsSegment
EMPTY
-
-
Constructor Summary
Constructors Constructor Description CycleResultsSegmentReadable(java.nio.ByteBuffer buf)
-
Method Summary
Modifier and Type Method Description CycleResultsSegmentfilter(java.util.function.Predicate<ResultReadable> filter)static CycleResultsSegmentforCycleResult(long completedCycle, int result)longgetCount()longgetMinCycle()java.util.Iterator<CycleResult>iterator()java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.engineblock.activityapi.cyclelog.buffers.results.CycleResultsSegment
compareTo
-
-
-
-
Method Detail
-
forCycleResult
public static CycleResultsSegment forCycleResult(long completedCycle, int result)
-
iterator
public java.util.Iterator<CycleResult> iterator()
- Specified by:
iteratorin interfacejava.lang.Iterable<CycleResult>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getCount
public long getCount()
- Specified by:
getCountin interfaceCycleResultsSegment
-
getMinCycle
public long getMinCycle()
- Specified by:
getMinCyclein interfaceCycleResultsSegment
-
filter
public CycleResultsSegment filter(java.util.function.Predicate<ResultReadable> filter)
- Specified by:
filterin interfaceCycleResultsSegment
-
-