Class TimingWithResult<R>
java.lang.Object
dk.cloudcreate.essentials.shared.time.Timing
dk.cloudcreate.essentials.shared.time.TimingWithResult<R>
- Type Parameters:
R- the type of result
The result of
StopWatch.time(Supplier)-
Field Summary
FieldsFields inherited from class dk.cloudcreate.essentials.shared.time.Timing
description, duration -
Constructor Summary
ConstructorsConstructorDescriptionTimingWithResult(R result, String description, Duration duration) Create a newTimingWithResultTimingWithResult(R result, Duration duration) Create a newTimingWithResult -
Method Summary
Modifier and TypeMethodDescriptionThe result of the operation performedstatic <R> TimingWithResult<R>Create a newTimingWithResultstatic <R> TimingWithResult<R>Create a newTimingWithResulttoString()Methods inherited from class dk.cloudcreate.essentials.shared.time.Timing
getDescription, getDuration, of, of
-
Field Details
-
result
The result of the operation performed
-
-
Constructor Details
-
TimingWithResult
Create a newTimingWithResult- Parameters:
result- The result of the operation performeddescription- Description of the timing - typically a description of what was timed/measuredduration- How long did the operation performed take
-
TimingWithResult
Create a newTimingWithResult- Parameters:
result- The result of the operation performedduration- How long did the operation performed take
-
-
Method Details
-
of
Create a newTimingWithResult- Type Parameters:
R- the type of result- Parameters:
result- The result of the operation performeddescription- Description of the timing - typically a description of what was timed/measuredduration- How long did the operation performed take- Returns:
- the
TimingWithResult
-
of
Create a newTimingWithResult- Type Parameters:
R- the type of result- Parameters:
result- The result of the operation performedduration- How long did the operation performed take- Returns:
- the
TimingWithResult
-
getResult
The result of the operation performed- Returns:
- The result of the operation performed
-
toString
-