Package io.sentry
Enum MeasurementUnit.Fraction
- java.lang.Object
-
- java.lang.Enum<MeasurementUnit.Fraction>
-
- io.sentry.MeasurementUnit.Fraction
-
- All Implemented Interfaces:
MeasurementUnit
,java.io.Serializable
,java.lang.Comparable<MeasurementUnit.Fraction>
- Enclosing interface:
- MeasurementUnit
public static enum MeasurementUnit.Fraction extends java.lang.Enum<MeasurementUnit.Fraction> implements MeasurementUnit
Fractions such as percentages.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.sentry.MeasurementUnit
MeasurementUnit.Custom, MeasurementUnit.Duration, MeasurementUnit.Fraction, MeasurementUnit.Information
-
-
Field Summary
-
Fields inherited from interface io.sentry.MeasurementUnit
NONE
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MeasurementUnit.Fraction
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MeasurementUnit.Fraction[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface io.sentry.MeasurementUnit
apiName, name
-
-
-
-
Enum Constant Detail
-
RATIO
public static final MeasurementUnit.Fraction RATIO
Floating point fraction of `1`.
-
PERCENT
public static final MeasurementUnit.Fraction PERCENT
Ratio expressed as a fraction of `100`. `100%` equals a ratio of `1.0`.
-
-
Method Detail
-
values
public static MeasurementUnit.Fraction[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MeasurementUnit.Fraction c : MeasurementUnit.Fraction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MeasurementUnit.Fraction valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-