ChargeMeasurement class
- Inheritance
-
- Object
- Measurement<
Charge> - ChargeMeasurement
Constructors
-
ChargeMeasurement.new(num magnitude, Unit<
Charge> defaultUnit, [Precision precision = f.Precision.max]) -
const
-
ChargeMeasurement.infinite([Unit<
Charge> unit = siUnit]) -
const
-
ChargeMeasurement.nan([Unit<
Charge> unit = siUnit]) -
const
-
ChargeMeasurement.negativeInfinite([Unit<
Charge> unit = siUnit]) -
const
-
ChargeMeasurement.sum(Iterable<
Measurement< parts, {int precision = f.Precision.maximumPrecision})Charge> > - Creates a measurement that is the sum of several measurements.
-
ChargeMeasurement.zero([Unit<
Charge> unit = siUnit]) -
const
Properties
-
defaultUnit
→ Unit<
Charge> -
The default unit for this measurement.
finalinherited
- defaultValue → double
-
Returns the default measurement value (i.e. the measurement as interpreted
by the default Unit.
no setterinherited
-
dot
→ MeasurementDot<
ChargeMeasurement, Charge> -
Creates a derived measurement of a derived unit consisting of this measurement'sunit multiplied by the specified measurement's unit, with this measurement'sdefault value as the default value of the resulting derived unit.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isFinite → bool
-
Returns
true
if this measurement is finite.no setterinherited - isInfinite → bool
-
Returns
true
if this measurement is infinite (either positive or negative).no setterinherited - isNaN → bool
-
Returns
true
if this measurement cannot be expressed as a number.no setterinherited - isNegative → bool
-
Returns
true
if this measurement is negative.no setterinherited - magnitude → num
-
The value of this measurement in the default unit.
finalinherited
-
per
→ MeasurementPer<
ChargeMeasurement, Charge> -
Creates a derived measurement of a derived unit consisting of this measurement'sunit in the numerator and the specified unit in the denominator, with this measurement'sdefault value as the default value of the resulting derived unit.
no setter
- precision → int
-
Returns the number of digits of precision this measurement has.
no setterinherited
- precisionData → Precision
-
The precision of this measurement.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- si → double
-
The measurement's value in the SI unit.
no setterinherited
Methods
-
as(
Unit< Charge> unit) → double -
Interprets this using the specified units.
inherited
-
butAs(
Unit< Charge> unit) → Measurement<Charge> -
Creates a new measurement equivalent to this one but with a different
default unit.
inherited
-
by<
D extends Dimension> (Measurement< D> term) → Measurement<Dimension2< UnitNumerator< >Charge> , UnitNumerator<D> > - Creates a derived measurement representing the product of this and another measurement.
-
compareMagnitude(
Measurement< Charge> other) → double -
Returns the difference in magnitude between this and another measurement.
inherited
-
compareTo(
Measurement< Charge> other) → int -
Compares this object to another object.
inherited
-
construct(
num magnitude, Unit< Charge> defaultUnit, Precision precision) → ChargeMeasurement -
Constructs a new measurement.
override
-
equals(
Measurement< Charge> other) → bool -
Returns whether two measurements are functionally identical.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
over<
D extends Dimension> (Measurement< D> denominator) → Measurement<Dimension2< UnitNumerator< >Charge> , UnitDenominator<D> > - Creates a derived measurement representing the ratio of this and another measurement.
-
toString(
) → String -
A string representation of this object.
inherited
-
withPrecision(
int precision) → ChargeMeasurement -
Creates an equivalent measurement with the specified precision (significant digits).
override
Operators
-
operator %(
Measurement< Charge> other) → Measurement<Charge> -
Returns the Euclidean remainder of the division between two measurements.
inherited
-
operator *(
num multiplier) → Measurement< Charge> -
Returns a measurement equivalent to a multiple of this.
inherited
-
operator +(
Measurement< Charge> other) → Measurement<Charge> -
Returns a measurement equivalent to the sum of two others.
inherited
-
operator -(
Measurement< Charge> other) → Measurement<Charge> -
Returns a measurement equivalent to the difference between two others.
inherited
-
operator /(
num divisor) → Measurement< Charge> -
Returns a measurement equivalent to a fraction of this.
inherited
-
operator <(
Measurement< Charge> other) → bool -
Returns
true
if this is less than the other measurement.inherited -
operator <=(
Measurement< Charge> other) → bool -
Returns
true
if this is less than or equal to the other measurement.inherited -
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator >(
Measurement< Charge> other) → bool -
Returns
true
if this is greater than the other measurement.inherited -
operator >=(
Measurement< Charge> other) → bool -
Returns
true
if this is greater than or equal to the other measurement.inherited -
operator unary-(
) → Measurement< Charge> -
Returns a measurement representing the opposite of this.
inherited
-
operator ~/(
Measurement< Charge> other) → int -
Returns the truncating division result of this and another measurement.
inherited