StopWatch.Split

public static final class org.apache.commons.lang3.time.StopWatch.Split extends ImmutablePair<String, Duration>[source]

Stores a split as a label and duration.

Since:

3.20.0

Constructors

Split(String, Duration)

Constructs a Split object with label and duration.

public Split(String label, Duration duration)[source]

Constructs a Split object with label and duration.

Parameters:
  • label – Label for this split.

  • duration – Duration for this split.

Methods

getDuration()

Gets the duration of this split.

getLabel()

Gets the label of this split.

toString()

Converts this instance to a string.

public Duration getDuration()[source]

Gets the duration of this split.

Returns:

The duration of this split.

public String getLabel()[source]

Gets the label of this split.

Returns:

The label of this split.

@Override public String toString()[source]

Converts this instance to a string.

Returns:

this instance to a string.