Package org.apache.commons.lang3.time
Class StopWatch.Split
- java.lang.Object
-
- org.apache.commons.lang3.tuple.Pair<L,R>
-
- org.apache.commons.lang3.tuple.ImmutablePair<java.lang.String,java.time.Duration>
-
- org.apache.commons.lang3.time.StopWatch.Split
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Pair<java.lang.String,java.time.Duration>>,java.util.Map.Entry<java.lang.String,java.time.Duration>
- Enclosing class:
- StopWatch
public static final class StopWatch.Split extends ImmutablePair<java.lang.String,java.time.Duration>
Stores a split as a label and duration.- Since:
- 3.20.0
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.commons.lang3.tuple.ImmutablePair
EMPTY_ARRAY, left, right
-
-
Constructor Summary
Constructors Constructor Description Split(java.lang.String label, java.time.Duration duration)Constructs a Split object with label and duration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.time.DurationgetDuration()Gets the duration of this split.java.lang.StringgetLabel()Gets the label of this split.java.lang.StringtoString()Converts this instance to a string.-
Methods inherited from class org.apache.commons.lang3.tuple.ImmutablePair
emptyArray, getLeft, getRight, left, nullPair, of, of, ofNonNull, right, setValue
-
-