Package io.sentry
Enum Class MeasurementUnit.Information
- All Implemented Interfaces:
MeasurementUnit
,Serializable
,Comparable<MeasurementUnit.Information>
,Constable
- Enclosing interface:
- MeasurementUnit
public static enum MeasurementUnit.Information
extends Enum<MeasurementUnit.Information>
implements MeasurementUnit
Size of information derived from bytes.
-
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 ConstantDescriptionBit (`"bit"`), corresponding to 1/8 of a byte.Byte (`"byte"`).Exabyte (`"exabyte"`), 10^18 bytes.Exbibyte (`"exbibyte"`), 2^60 bytes.Gibibyte (`"gibibyte"`), 2^30 bytes.Gigabyte (`"gigabyte"`), 10^9 bytes.Kibibyte (`"kibibyte"`), 2^10 bytes.Kilobyte (`"kilobyte"`), 10^3 bytes.Mebibyte (`"mebibyte"`), 2^20 bytes.Megabyte (`"megabyte"`), 10^6 bytes.Pebibyte (`"pebibyte"`), 2^50 bytes.Petabyte (`"petabyte"`), 10^15 bytes.Tebibyte (`"tebibyte"`), 2^40 bytes.Terabyte (`"terabyte"`), 10^12 bytes. -
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.Information
Returns the enum constant of this class with the specified name.static MeasurementUnit.Information[]
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
-
BIT
Bit (`"bit"`), corresponding to 1/8 of a byte. -
BYTE
Byte (`"byte"`). -
KILOBYTE
Kilobyte (`"kilobyte"`), 10^3 bytes. -
KIBIBYTE
Kibibyte (`"kibibyte"`), 2^10 bytes. -
MEGABYTE
Megabyte (`"megabyte"`), 10^6 bytes. -
MEBIBYTE
Mebibyte (`"mebibyte"`), 2^20 bytes. -
GIGABYTE
Gigabyte (`"gigabyte"`), 10^9 bytes. -
GIBIBYTE
Gibibyte (`"gibibyte"`), 2^30 bytes. -
TERABYTE
Terabyte (`"terabyte"`), 10^12 bytes. -
TEBIBYTE
Tebibyte (`"tebibyte"`), 2^40 bytes. -
PETABYTE
Petabyte (`"petabyte"`), 10^15 bytes. -
PEBIBYTE
Pebibyte (`"pebibyte"`), 2^50 bytes. -
EXABYTE
Exabyte (`"exabyte"`), 10^18 bytes. -
EXBIBYTE
Exbibyte (`"exbibyte"`), 2^60 bytes.
-
-
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
-