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