Package org.anchoranalysis.core.time
Class RecordedExecutionTimes
Object
RecordedExecutionTimes
Recorded execution-times for operations.
- Author:
- Owen Feehan
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A particular type of operation that has been recorded (en aggregate). -
Constructor Summary
ConstructorsConstructorDescriptionRecordedExecutionTimes
(Stream<RecordedExecutionTimes.RecordedOperation> runningTimes) Create with the running-times. -
Method Summary
Modifier and TypeMethodDescriptionvoid
For each unique operation with a recorded-time, callconsumer
.boolean
isEmpty()
Are there no recorded operations?
-
Constructor Details
-
RecordedExecutionTimes
Create with the running-times.- Parameters:
runningTimes
- a set of each operation-identifiers and corresponding execution-times.
-
-
Method Details
-
forEach
For each unique operation with a recorded-time, callconsumer
.- Parameters:
consumer
- called for each unique operation that has been recorded.
-
isEmpty
public boolean isEmpty()Are there no recorded operations?- Returns:
- yes, iff no recorded operations exist.
-