Enum Unit
- All Implemented Interfaces:
Serializable
,Comparable<Unit>
,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:36.909Z")
@Stability(Stable)
public enum Unit
extends Enum<Unit>
Unit for metric.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionBits.Bits/second (b/s).Bytes.Bytes/second (B/s).Count.Count/second.Gigabits.Gigabits/second (Gb/s).Gigabytes.Gigabytes/second (GB/s).Kilobits.Kilobits/second (kb/s).Kilobytes.Kilobytes/second (kB/s).Megabits.Megabits/second (Mb/s).Megabytes.Megabytes/second (MB/s).Microseconds.Milliseconds.None.Percent.Seconds.Terabits.Terabits/second (Tb/s).Terabytes.Terabytes/second (TB/s). -
Method Summary
-
Enum Constant Details
-
SECONDS
Seconds. -
MICROSECONDS
Microseconds. -
MILLISECONDS
Milliseconds. -
BYTES
Bytes. -
KILOBYTES
Kilobytes. -
MEGABYTES
Megabytes. -
GIGABYTES
Gigabytes. -
TERABYTES
Terabytes. -
BITS
Bits. -
KILOBITS
Kilobits. -
MEGABITS
Megabits. -
GIGABITS
Gigabits. -
TERABITS
Terabits. -
PERCENT
Percent. -
COUNT
Count. -
BYTES_PER_SECOND
Bytes/second (B/s). -
KILOBYTES_PER_SECOND
Kilobytes/second (kB/s). -
MEGABYTES_PER_SECOND
Megabytes/second (MB/s). -
GIGABYTES_PER_SECOND
Gigabytes/second (GB/s). -
TERABYTES_PER_SECOND
Terabytes/second (TB/s). -
BITS_PER_SECOND
Bits/second (b/s). -
KILOBITS_PER_SECOND
Kilobits/second (kb/s). -
MEGABITS_PER_SECOND
Megabits/second (Mb/s). -
GIGABITS_PER_SECOND
Gigabits/second (Gb/s). -
TERABITS_PER_SECOND
Terabits/second (Tb/s). -
COUNT_PER_SECOND
Count/second. -
NONE
None.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-