InformationSize class
A unit of measurement representing information size.
- Inheritance
-
- Object
- UnitOfMeasurement<
InformationUnit, InformationSize> - InformationSize
Constructors
- InformationSize.fromBits(Rational bits)
-
Creates an InformationSize representing the specified number of
bits
.factory - InformationSize.fromBytes(Rational bytes)
-
Creates an InformationSize representing the specified number of
bytes
.factory - InformationSize.fromCrumbs(Rational crumbs)
-
Creates an InformationSize representing the specified number of
crumbs
.factory - InformationSize.fromExabits(Rational exabits)
-
Creates an InformationSize representing the specified number of
exabits
.factory - InformationSize.fromExabytes(Rational exabytes)
-
Creates an InformationSize representing the specified number of
exabytes
.factory - InformationSize.fromExbibits(Rational exbibits)
-
Creates an InformationSize representing the specified number of
exbibits
.factory - InformationSize.fromExbibytes(Rational exbibytes)
-
Creates an InformationSize representing the specified number of
exbibytes
.factory - InformationSize.fromGibibits(Rational gibibits)
-
Creates an InformationSize representing the specified number of
gibibits
.factory - InformationSize.fromGibibytes(Rational gibibytes)
-
Creates an InformationSize representing the specified number of
gibibytes
.factory - InformationSize.fromGigabits(Rational gigabits)
-
Creates an InformationSize representing the specified number of
gigabits
.factory - InformationSize.fromGigabytes(Rational gigabytes)
-
Creates an InformationSize representing the specified number of
gigabytes
.factory - InformationSize.fromKibibits(Rational kibibits)
-
Creates an InformationSize representing the specified number of
kibibits
.factory - InformationSize.fromKibibytes(Rational kibibytes)
-
Creates an InformationSize representing the specified number of
kibibytes
.factory - InformationSize.fromKilobits(Rational kilobits)
-
Creates an InformationSize representing the specified number of
kilobits
.factory - InformationSize.fromKilobytes(Rational kilobytes)
-
Creates an InformationSize representing the specified number of
kilobytes
.factory - InformationSize.fromMebibits(Rational mebibits)
-
Creates an InformationSize representing the specified number of
mebibits
.factory - InformationSize.fromMebibytes(Rational mebibytes)
-
Creates an InformationSize representing the specified number of
mebibytes
.factory - InformationSize.fromMegabits(Rational megabits)
-
Creates an InformationSize representing the specified number of
megabits
.factory - InformationSize.fromMegabytes(Rational megabytes)
-
Creates an InformationSize representing the specified number of
megabytes
.factory - InformationSize.fromNibbles(Rational nibbles)
-
Creates an InformationSize representing the specified number of
nibbles
.factory - InformationSize.fromPebibits(Rational pebibits)
-
Creates an InformationSize representing the specified number of
pebibits
.factory - InformationSize.fromPebibytes(Rational pebibytes)
-
Creates an InformationSize representing the specified number of
pebibytes
.factory - InformationSize.fromPetabits(Rational petabits)
-
Creates an InformationSize representing the specified number of
petabits
.factory - InformationSize.fromPetabytes(Rational petabytes)
-
Creates an InformationSize representing the specified number of
petabytes
.factory - InformationSize.fromTebibits(Rational tebibits)
-
Creates an InformationSize representing the specified number of
tebibits
.factory - InformationSize.fromTebibytes(Rational tebibytes)
-
Creates an InformationSize representing the specified number of
tebibytes
.factory - InformationSize.fromTerabits(Rational terabits)
-
Creates an InformationSize representing the specified number of
terabits
.factory - InformationSize.fromTerabytes(Rational terabytes)
-
Creates an InformationSize representing the specified number of
terabytes
.factory - InformationSize.fromUnits(InformationUnit unit, Rational value)
-
Creates an InformationSize given a
unit
and rationalvalue
for that unit. - InformationSize.fromYobibits(Rational yobibits)
-
Creates an InformationSize representing the specified number of
yobibits
.factory - InformationSize.fromYobibytes(Rational yobibytes)
-
Creates an InformationSize representing the specified number of
yobibytes
.factory - InformationSize.fromYottabits(Rational yottabits)
-
Creates an InformationSize representing the specified number of
yottabits
.factory - InformationSize.fromYottabytes(Rational yottabytes)
-
Creates an InformationSize representing the specified number of
yottabytes
.factory - InformationSize.fromZebibits(Rational zebibits)
-
Creates an InformationSize representing the specified number of
zebibits
.factory - InformationSize.fromZebibytes(Rational zebibytes)
-
Creates an InformationSize representing the specified number of
zebibytes
.factory - InformationSize.fromZettabits(Rational zettabits)
-
Creates an InformationSize representing the specified number of
zettabits
.factory - InformationSize.fromZettabytes(Rational zettabytes)
-
Creates an InformationSize representing the specified number of
zettabytes
.factory
Properties
- baseValue ↔ Rational
-
The underlying base value of the unit of measurement.
latefinalinherited
- bits → Rational
-
Gets the number of bits in this InformationSize, including any fractional portion.
no setter
- bytes → Rational
-
Gets the number of bytes in this InformationSize, including any fractional portion.
no setter
- crumbs → Rational
-
Gets the number of crumbs in this InformationSize, including any fractional portion.
no setter
- exabits → Rational
-
Gets the number of exabits in this InformationSize, including any fractional portion.
no setter
- exabytes → Rational
-
Gets the number of exabytes in this InformationSize, including any fractional portion.
no setter
- exbibits → Rational
-
Gets the number of exbibits in this InformationSize, including any fractional portion.
no setter
- exbibytes → Rational
-
Gets the number of exbibytes in this InformationSize, including any fractional portion.
no setter
- gibibits → Rational
-
Gets the number of gibibits in this InformationSize, including any fractional portion.
no setter
- gibibytes → Rational
-
Gets the number of gibibytes in this InformationSize, including any fractional portion.
no setter
- gigabits → Rational
-
Gets the number of gigabits in this InformationSize, including any fractional portion.
no setter
- gigabytes → Rational
-
Gets the number of gigabytes in this InformationSize, including any fractional portion.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- kibibits → Rational
-
Gets the number of kibibits in this InformationSize, including any fractional portion.
no setter
- kibibytes → Rational
-
Gets the number of kibibytes in this InformationSize, including any fractional portion.
no setter
- kilobits → Rational
-
Gets the number of kilobits in this InformationSize, including any fractional portion.
no setter
- kilobytes → Rational
-
Gets the number of kilobytes in this InformationSize, including any fractional portion.
no setter
- mebibits → Rational
-
Gets the number of mebibits in this InformationSize, including any fractional portion.
no setter
- mebibytes → Rational
-
Gets the number of mebibytes in this InformationSize, including any fractional portion.
no setter
- megabits → Rational
-
Gets the number of megabits in this InformationSize, including any fractional portion.
no setter
- megabytes → Rational
-
Gets the number of megabytes in this InformationSize, including any fractional portion.
no setter
- nibbles → Rational
-
Gets the number of nibbles in this InformationSize, including any fractional portion.
no setter
- pebibits → Rational
-
Gets the number of pebibits in this InformationSize, including any fractional portion.
no setter
- pebibytes → Rational
-
Gets the number of pebibytes in this InformationSize, including any fractional portion.
no setter
- petabits → Rational
-
Gets the number of petabits in this InformationSize, including any fractional portion.
no setter
- petabytes → Rational
-
Gets the number of petabytes in this InformationSize, including any fractional portion.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tebibits → Rational
-
Gets the number of tebibits in this InformationSize, including any fractional portion.
no setter
- tebibytes → Rational
-
Gets the number of tebibytes in this InformationSize, including any fractional portion.
no setter
- terabits → Rational
-
Gets the number of terabits in this InformationSize, including any fractional portion.
no setter
- terabytes → Rational
-
Gets the number of terabytes in this InformationSize, including any fractional portion.
no setter
- yobibits → Rational
-
Gets the number of yobibits in this InformationSize, including any fractional portion.
no setter
- yobibytes → Rational
-
Gets the number of yobibytes in this InformationSize, including any fractional portion.
no setter
- yottabits → Rational
-
Gets the number of yottabits in this InformationSize, including any fractional portion.
no setter
- yottabytes → Rational
-
Gets the number of yottabytes in this InformationSize, including any fractional portion.
no setter
- zebibits → Rational
-
Gets the number of zebibits in this InformationSize, including any fractional portion.
no setter
- zebibytes → Rational
-
Gets the number of zebibytes in this InformationSize, including any fractional portion.
no setter
- zettabits → Rational
-
Gets the number of zettabits in this InformationSize, including any fractional portion.
no setter
- zettabytes → Rational
-
Gets the number of zettabytes in this InformationSize, including any fractional portion.
no setter
Methods
-
abs(
) → InformationSize -
Gets the absolute value.
inherited
-
compareTo(
InformationSize other) → int -
Compares this object to another object.
inherited
-
createValue(
Rational baseValue) → InformationSize -
Creates a unit of measurement value with the specified
baseValue
.override -
getBaseValue(
InformationUnit unit, Rational value) → Rational -
Gets the base value for a unit of measurement of
unit
andvalue
.override -
getLargestUnit(
{required Set< InformationUnit> permissibleUnits}) → InformationUnit -
Determines the largest unit that has a value of at least
1
.inherited -
getUnits(
InformationUnit unit) → Rational -
Gets the number of
unit
units in this unit of measurement.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
per(
Duration period) → InformationRate -
Creates an InformationRate with the specified
period
from this value. -
round(
InformationUnit roundTo) → InformationSize -
Rounds this unit of measurement such that the
roundTo
unit will be rounded towards the nearest integer.inherited -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator *(
Rational factor) → InformationSize -
Multiplies this value by
factor
.inherited -
operator +(
InformationSize other) → InformationSize -
Adds
other
onto this value.inherited -
operator -(
InformationSize other) → InformationSize -
Subtracts
other
from this value.inherited -
operator /(
Rational divisor) → InformationSize -
Divides this value by
divisor
.inherited -
operator <(
InformationSize other) → bool -
Determines whether this value is less than
other
.inherited -
operator <=(
InformationSize other) → bool -
Determines whether this value is less than or equal to
other
.inherited -
operator ==(
Object other) → bool -
Determines whether this unit of measurement value is equal to
other
.inherited -
operator >(
InformationSize other) → bool -
Determines whether this value is greater than
other
.inherited -
operator >=(
InformationSize other) → bool -
Determines whether this value is greater than or equal to
other
.inherited -
operator unary-(
) → InformationSize -
Negates this value.
inherited
Static Properties
- zero → InformationSize
-
An InformationSize of size zero.
final