Package io.sentry
Enum Class MeasurementUnit.Fraction
- All Implemented Interfaces:
MeasurementUnit
,Serializable
,Comparable<MeasurementUnit.Fraction>
,Constable
- Enclosing interface:
- MeasurementUnit
public static enum MeasurementUnit.Fraction
extends Enum<MeasurementUnit.Fraction>
implements MeasurementUnit
Fractions such as percentages.
-
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
-
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.Fraction
Returns the enum constant of this class with the specified name.static MeasurementUnit.Fraction[]
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
-
RATIO
Floating point fraction of `1`. -
PERCENT
Ratio expressed as a fraction of `100`. `100%` equals a ratio of `1.0`.
-
-
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
-