Class CycleSpanResults
- java.lang.Object
-
- io.engineblock.activityapi.cyclelog.buffers.results_rle.CycleSpanResults
-
- All Implemented Interfaces:
CycleResultsSegment,ResultReadable,java.lang.Comparable<CycleResultsSegment>,java.lang.Iterable<CycleResult>
public class CycleSpanResults extends java.lang.Object implements CycleResultsSegment, ResultReadable
-
-
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 CycleSpanResults(long min, long nextMin, int result)
-
Method Summary
Modifier and Type Method Description CycleResultsSegmentfilter(java.util.function.Predicate<ResultReadable> filter)longgetCount()longgetMinCycle()intgetResult()Get a result associated with some operation, according to the activity-specific result mapjava.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
-
getCount
public long getCount()
- Specified by:
getCountin interfaceCycleResultsSegment
-
getMinCycle
public long getMinCycle()
- Specified by:
getMinCyclein interfaceCycleResultsSegment
-
getResult
public int getResult()
Description copied from interface:ResultReadableGet a result associated with some operation, according to the activity-specific result map- Specified by:
getResultin interfaceResultReadable- Returns:
- an activity-specific result code
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
filter
public CycleResultsSegment filter(java.util.function.Predicate<ResultReadable> filter)
- Specified by:
filterin interfaceCycleResultsSegment
-
iterator
public java.util.Iterator<CycleResult> iterator()
- Specified by:
iteratorin interfacejava.lang.Iterable<CycleResult>
-
-