Package io.sentry
Enum Class MeasurementUnit.Duration
- All Implemented Interfaces:
MeasurementUnit
,Serializable
,Comparable<MeasurementUnit.Duration>
,Constable
- Enclosing interface:
- MeasurementUnit
public static enum MeasurementUnit.Duration
extends Enum<MeasurementUnit.Duration>
implements MeasurementUnit
A time duration.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface io.sentry.MeasurementUnit
MeasurementUnit.Custom, MeasurementUnit.Duration, MeasurementUnit.Fraction, MeasurementUnit.Information
-
Enum Constant Summary
Enum ConstantDescriptionDay (`"day"`), 86,400 seconds.Hour (`"hour"`), 3600 seconds.Microsecond (`"microsecond"`), 10^-6 seconds.Millisecond (`"millisecond"`), 10^-3 seconds.Minute (`"minute"`), 60 seconds.Nanosecond (`"nanosecond"`), 10^-9 seconds.Full second (`"second"`).Week (`"week"`), 604,800 seconds. -
Field Summary
Fields inherited from interface io.sentry.MeasurementUnit
NONE
-
Method Summary
Modifier and TypeMethodDescription@NotNull String
apiName()
Unit adhering to the API spec.static MeasurementUnit.Duration
Returns the enum constant of this class with the specified name.static MeasurementUnit.Duration[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface io.sentry.MeasurementUnit
name
-
Enum Constant Details
-
NANOSECOND
Nanosecond (`"nanosecond"`), 10^-9 seconds. -
MICROSECOND
Microsecond (`"microsecond"`), 10^-6 seconds. -
MILLISECOND
Millisecond (`"millisecond"`), 10^-3 seconds. -
SECOND
Full second (`"second"`). -
MINUTE
Minute (`"minute"`), 60 seconds. -
HOUR
Hour (`"hour"`), 3600 seconds. -
DAY
Day (`"day"`), 86,400 seconds. -
WEEK
Week (`"week"`), 604,800 seconds.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
apiName
Description copied from interface:MeasurementUnit
Unit adhering to the API spec.- Specified by:
apiName
in interfaceMeasurementUnit
-