DataUnit enum
A unit a DataSize can be written in, each 1024 times the one before.
An application meets it in @DataSizeUnit(DataUnit.megabytes), which
says in which unit a plain number of a field is read, and in
DataSize.of and DataSize.parse.
Spring (Java): DataUnit.
Values
- bytes → const DataUnit
-
Bytes (
B).const DataUnit('B', 1) - kilobytes → const DataUnit
-
Kilobytes (
KB, 1024 bytes).const DataUnit('KB', 1024) - megabytes → const DataUnit
-
Megabytes (
MB).const DataUnit('MB', 1024 * 1024) - gigabytes → const DataUnit
-
Gigabytes (
GB).const DataUnit('GB', 1024 * 1024 * 1024) - terabytes → const DataUnit
-
Terabytes (
TB).const DataUnit('TB', 1024 * 1024 * 1024 * 1024)
Properties
- byteCount → int
-
How many bytes one of this unit holds.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- suffix → String
-
The suffix that names this unit in text such as
10MB.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited