public class CycleLogInput extends Object implements Input, AutoCloseable, Iterable<CycleResultsSegment>, CanFilterResultValue
| Constructor and Description |
|---|
CycleLogInput(Activity activity) |
CycleLogInput(String filename) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
CycleSegment |
getInputSegment(int segmentLength)
Return the next InputSegment available, or null if
none were available.
|
@NotNull Iterator<CycleResultsSegment> |
iterator() |
void |
setFilter(Predicate<ResultReadable> filter) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisContiguousforEach, spliteratorpublic CycleLogInput(Activity activity)
public CycleLogInput(String filename)
public void setFilter(Predicate<ResultReadable> filter)
setFilter in interface CanFilterResultValuepublic CycleSegment getInputSegment(int segmentLength)
InputAll implementations of this method are required to be thread-safe.
getInputSegment in interface InputsegmentLength - The number of cycles (not necessarily contiguous) in the segment.public void close()
throws Exception
close in interface AutoCloseableException@NotNull public @NotNull Iterator<CycleResultsSegment> iterator()
iterator in interface Iterable<CycleResultsSegment>Copyright © 2017. All rights reserved.