Uses of Enum Class
com.irurueta.units.WeightUnit
-
Uses of WeightUnit in com.irurueta.units
Methods in com.irurueta.units that return WeightUnitModifier and TypeMethodDescriptionAttempts to determine a weight unit within a measurement string representation.static WeightUnit[]WeightUnit.getImperialUnits()Gets all supported imperial weight units.static WeightUnit[]WeightUnit.getMetricUnits()Gets all supported metric weight units.static WeightUnitReturns the enum constant of this class with the specified name.static WeightUnit[]WeightUnit.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in com.irurueta.units with parameters of type WeightUnitModifier and TypeMethodDescriptionvoidWeight.add(double value, WeightUnit unit) Adds provided weight value and unit and updates current weight instance.static doubleWeight.add(double value1, WeightUnit unit1, double value2, WeightUnit unit2, WeightUnit resultUnit) Adds two weight values and units and returns the result.voidWeight.add(Number value, WeightUnit unit) Adds provided weight value and unit and updates current weight instance.static NumberWeight.add(Number value1, WeightUnit unit1, Number value2, WeightUnit unit2, WeightUnit resultUnit) Adds two weight values and units and returns the result.Weight.addAndReturnNew(double value, WeightUnit unit, WeightUnit resultUnit) Adds provided weight value and unit and returns a new weight instance using provided unit.static WeightWeight.addAndReturnNew(Weight arg1, Weight arg2, WeightUnit unit) Adds two weights.Weight.addAndReturnNew(Weight w, WeightUnit unit) Adds provided weight to current instance and returns a new weight.Weight.addAndReturnNew(Number value, WeightUnit unit, WeightUnit resultUnit) Adds provided weight value and unit and returns a new weight instance using provided unit.static doubleWeightConverter.convert(double input, WeightUnit inputUnit, WeightUnit outputUnit) Converts a weight value from input unit to provided output unit.static voidWeightConverter.convert(Weight weight, WeightUnit outputUnit) Converts and updates a weight to requested output unit.static voidWeightConverter.convert(Weight input, WeightUnit outputUnit, Weight result) Converts a weight to requested output unit.static NumberWeightConverter.convert(Number input, WeightUnit inputUnit, WeightUnit outputUnit) Converts a weight value from input unit to provided output unit.static WeightWeightConverter.convertAndReturnNew(Weight input, WeightUnit outputUnit) Converts a weight to requested output unit.WeightFormatter.formatAndConvert(Number value, WeightUnit unit, UnitSystem system) Formats and converts provided weight value and unit using provided unit system.WeightFormatter.formatAndConvertImperial(Number value, WeightUnit unit) Formats and converts provided weight value and unit using imperial unit system.WeightFormatter.formatAndConvertMetric(Number value, WeightUnit unit) Formats and converts provided weight value and unit using metric unit system.WeightFormatter.getUnitSymbol(WeightUnit unit) Returns unit string representation.static UnitSystemWeightUnit.getUnitSystem(WeightUnit unit) Returns unit system for provided weight unit.static booleanWeightUnit.isImperial(WeightUnit unit) Indicates whether provided unit belongs to the imperial unit system.static booleanWeightUnit.isMetric(WeightUnit unit) Indicates whether provided unit belongs to the metric unit systemvoidWeight.subtract(double value, WeightUnit unit) Subtracts provided weight value and unit and updates current weight instance.static doubleWeight.subtract(double value1, WeightUnit unit1, double value2, WeightUnit unit2, WeightUnit resultUnit) Subtracts two weight values and units and returns the result.voidWeight.subtract(Number value, WeightUnit unit) Subtracts provided weight value and unit and updates current weight instance.static NumberWeight.subtract(Number value1, WeightUnit unit1, Number value2, WeightUnit unit2, WeightUnit resultUnit) Subtracts two weight values and units and returns the result.Weight.subtractAndReturnNew(double value, WeightUnit unit, WeightUnit resultUnit) Subtracts provided weight value and unit and returns a new weight instance using provided unit.static WeightWeight.subtractAndReturnNew(Weight arg1, Weight arg2, WeightUnit unit) Subtracts two weights.Weight.subtractAndReturnNew(Weight w, WeightUnit unit) Subtracts provided weight from current instance and returns a new weight.Weight.subtractAndReturnNew(Number value, WeightUnit unit, WeightUnit resultUnit) Subtracts provided weight value and unit and returns a new weight instance using provided unit.Method parameters in com.irurueta.units with type arguments of type WeightUnitModifier and TypeMethodDescriptionbooleanWeight.equals(Measurement<WeightUnit> other, double tolerance) Determines if two weights are equal up to a certain tolerance.Constructors in com.irurueta.units with parameters of type WeightUnitModifierConstructorDescriptionWeight(Number value, WeightUnit unit) Constructor with value and unit.