Interface Power

All Superinterfaces:
Comparable<Measure<PowerUnit>>, Measure<PowerUnit>
All Known Implementing Classes:
ImmutablePower, MutPower

public interface Power extends Measure<PowerUnit>
  • Method Details

    • ofRelativeUnits

      static Power ofRelativeUnits(double magnitude, PowerUnit unit)
    • ofBaseUnits

      static Power ofBaseUnits(double baseUnitMagnitude, PowerUnit unit)
    • copy

      Description copied from interface: Measure
      Returns an immutable copy of this measure. The copy can be used freely and is guaranteed never to change.
      Specified by:
      copy in interface Measure<PowerUnit>
      Returns:
      the copied measure
    • mutableCopy

      default MutPower mutableCopy()
      Description copied from interface: Measure
      Returns a mutable copy of this measure. It will be initialized to the current state of this measure, but can be changed over time without needing to allocate new measurement objects.
      Specified by:
      mutableCopy in interface Measure<PowerUnit>
      Returns:
      the copied measure
    • unit

      Description copied from interface: Measure
      Gets the units of this measure.
      Specified by:
      unit in interface Measure<PowerUnit>
      Returns:
      the unit
    • baseUnit

      default PowerUnit baseUnit()
      Description copied from interface: Measure
      A convenience method to get the base unit of the measurement. Equivalent to unit().getBaseUnit().
      Specified by:
      baseUnit in interface Measure<PowerUnit>
      Returns:
      the base unit of measure.
    • in

      default double in(PowerUnit unit)
      Description copied from interface: Measure
      Converts this measure to a measure with a different unit of the same type, eg minutes to seconds. Converting to the same unit is equivalent to calling Measure.magnitude().
         Meters.of(12).in(Feet) // 39.3701
         Seconds.of(15).in(Minutes) // 0.25
       
      Specified by:
      in in interface Measure<PowerUnit>
      Parameters:
      unit - the unit to convert this measure to
      Returns:
      the value of this measure in the given unit
    • unaryMinus

      default Power unaryMinus()
      Description copied from interface: Measure
      Returns a measure equivalent to this one equal to zero minus its current value. For non-linear unit types like temperature, the zero point is treated as the zero value of the base unit (eg Kelvin). In effect, this means code like Celsius.of(10).unaryMinus() returns a value equivalent to -10 Kelvin, and not -10° Celsius.
      Specified by:
      unaryMinus in interface Measure<PowerUnit>
      Returns:
      a measure equal to zero minus this measure
    • negate

      @Deprecated(since="2025", forRemoval=true) default Power negate()
      Deprecated, for removal: This API element is subject to removal in a future version.
      use unaryMinus() instead. This was renamed for consistency with other WPILib classes like Rotation2d
      Returns a measure equivalent to this one equal to zero minus its current value. For non-linear unit types like temperature, the zero point is treated as the zero value of the base unit (eg Kelvin). In effect, this means code like Celsius.of(10).negate() returns a value equivalent to -10 Kelvin, and not -10° Celsius.
      Specified by:
      negate in interface Measure<PowerUnit>
      Returns:
      a measure equal to zero minus this measure
    • plus

      default Power plus(Measure<? extends PowerUnit> other)
      Description copied from interface: Measure
      Adds another measure of the same unit type to this one.
      Specified by:
      plus in interface Measure<PowerUnit>
      Parameters:
      other - the measurement to add
      Returns:
      a measure of the sum of both measures
    • minus

      default Power minus(Measure<? extends PowerUnit> other)
      Description copied from interface: Measure
      Subtracts another measure of the same unit type from this one.
      Specified by:
      minus in interface Measure<PowerUnit>
      Parameters:
      other - the measurement to subtract
      Returns:
      a measure of the difference between the measures
    • times

      default Power times(double multiplier)
      Description copied from interface: Measure
      Multiplies this measure by a scalar unitless multiplier.
      Specified by:
      times in interface Measure<PowerUnit>
      Parameters:
      multiplier - the scalar multiplication factor
      Returns:
      the scaled result
    • div

      default Power div(double divisor)
      Description copied from interface: Measure
      Divides this measure by a unitless scalar and returns the result.
      Specified by:
      div in interface Measure<PowerUnit>
      Parameters:
      divisor - the measurement to divide by.
      Returns:
      the division result
    • divide

      @Deprecated(since="2025", forRemoval=true) default Power divide(double divisor)
      Deprecated, for removal: This API element is subject to removal in a future version.
      use div instead. This was renamed for consistency with other languages like Kotlin
      Divides this measure by a unitless scalar and returns the result.
      Specified by:
      divide in interface Measure<PowerUnit>
      Parameters:
      divisor - the measurement to divide by.
      Returns:
      the division result
    • per

      default Velocity<PowerUnit> per(TimeUnit period)
      Description copied from interface: Measure
      Divides this measure by a time period and returns the result in the most appropriate unit. This is equivalent to div(period.of(1)).
      Specified by:
      per in interface Measure<PowerUnit>
      Parameters:
      period - the time period measurement to divide by.
      Returns:
      the division result
    • times

      default Mult<PowerUnit,AccelerationUnit<?>> times(Acceleration<?> multiplier)
      Description copied from interface: Measure
      Multiplies this measure by an acceleration and returns the resulting measure in the most appropriate unit.
      Specified by:
      times in interface Measure<PowerUnit>
      Parameters:
      multiplier - the measurement to multiply by.
      Returns:
      the multiplication result
    • div

      default Per<PowerUnit,AccelerationUnit<?>> div(Acceleration<?> divisor)
      Description copied from interface: Measure
      Divides this measure by a generic acceleration and returns the result in the most appropriate unit.
      Specified by:
      div in interface Measure<PowerUnit>
      Parameters:
      divisor - the measurement to divide by.
      Returns:
      the division result
    • divide

      @Deprecated(since="2025", forRemoval=true) default Per<PowerUnit,AccelerationUnit<?>> divide(Acceleration<?> divisor)
      Deprecated, for removal: This API element is subject to removal in a future version.
      use div instead. This was renamed for consistency with other languages like Kotlin
      Divides this measure by a generic acceleration and returns the result in the most appropriate unit.
      Specified by:
      divide in interface Measure<PowerUnit>
      Parameters:
      divisor - the measurement to divide by.
      Returns:
      the division result
    • times

      default Mult<PowerUnit,AngleUnit> times(Angle multiplier)
      Description copied from interface: Measure
      Multiplies this measure by an angle and returns the resulting measure in the most appropriate unit.
      Specified by:
      times in interface Measure<PowerUnit>
      Parameters:
      multiplier - the measurement to multiply by.
      Returns:
      the multiplication result
    • div

      default Per<PowerUnit,AngleUnit> div(Angle divisor)
      Description copied from interface: Measure
      Divides this measure by an angle and returns the result in the most appropriate unit.
      Specified by:
      div in interface Measure<PowerUnit>
      Parameters:
      divisor - the measurement to divide by.
      Returns:
      the division result
    • divide

      @Deprecated(since="2025", forRemoval=true) default Per<PowerUnit,AngleUnit> divide(Angle divisor)
      Deprecated, for removal: This API element is subject to removal in a future version.
      use div instead. This was renamed for consistency with other languages like Kotlin
      Divides this measure by an angle and returns the result in the most appropriate unit.
      Specified by:
      divide in interface Measure<PowerUnit>
      Parameters:
      divisor - the measurement to divide by.
      Returns:
      the division result
    • times

      Description copied from interface: Measure
      Multiplies this measure by an angular acceleration and returns the resulting measure in the most appropriate unit.
      Specified by:
      times in interface Measure<PowerUnit>
      Parameters:
      multiplier - the measurement to multiply by.
      Returns:
      the multiplication result
    • div

      Description copied from interface: Measure
      Divides this measure by an angular acceleration and returns the result in the most appropriate unit.
      Specified by:
      div in interface Measure<PowerUnit>
      Parameters:
      divisor - the measurement to divide by.
      Returns:
      the division result
    • divide

      Deprecated, for removal: This API element is subject to removal in a future version.
      use div instead. This was renamed for consistency with other languages like Kotlin
      Divides this measure by an angular acceleration and returns the result in the most appropriate unit.
      Specified by:
      divide in interface Measure<PowerUnit>
      Parameters:
      divisor - the measurement to divide by.
      Returns:
      the division result
    • times

      Description copied from interface: Measure
      Multiplies this measure by an angular momentum and returns the resulting measure in the most appropriate unit.
      Specified by:
      times in interface Measure<PowerUnit>
      Parameters:
      multiplier - the measurement to multiply by.
      Returns:
      the multiplication result
    • div

      Description copied from interface: Measure
      Divides this measure by an angular momentum and returns the result in the most appropriate unit.
      Specified by:
      div in interface Measure<PowerUnit>
      Parameters:
      divisor - the measurement to divide by.
      Returns:
      the division result
    • divide

      Deprecated, for removal: This API element is subject to removal in a future version.
      use div instead. This was renamed for consistency with other languages like Kotlin
      Divides this measure by an angular momentum and returns the result in the most appropriate unit.
      Specified by:
      divide in interface Measure<PowerUnit>
      Parameters:
      divisor - the measurement to divide by.
      Returns:
      the division result
    • times

      Description copied from interface: Measure
      Multiplies this measure by an angular velocity and returns the resulting measure in the most appropriate unit.
      Specified by:
      times in interface Measure<PowerUnit>
      Parameters:
      multiplier - the measurement to multiply by.
      Returns:
      the multiplication result
    • div

      Description copied from interface: Measure
      Divides this measure by an angular velocity and returns the result in the most appropriate unit.
      Specified by:
      div in interface Measure<PowerUnit>
      Parameters:
      divisor - the measurement to divide by.
      Returns:
      the division result
    • divide

      Deprecated, for removal: This API element is subject to removal in a future version.
      use div instead. This was renamed for consistency with other languages like Kotlin
      Divides this measure by an angular velocity and returns the result in the most appropriate unit.
      Specified by:
      divide in interface Measure<PowerUnit>
      Parameters:
      divisor - the measurement to divide by.
      Returns:
      the division result
    • times

      default Mult<PowerUnit,CurrentUnit> times(Current multiplier)
      Description copied from interface: Measure
      Multiplies this measure by an electric current and returns the resulting measure in the most appropriate unit.
      Specified by:
      times in interface Measure<PowerUnit>
      Parameters:
      multiplier - the measurement to multiply by.
      Returns:
      the multiplication result
    • div

      default Voltage div(Current divisor)
      Description copied from interface: Measure
      Divides this measure by an electric current and returns the result in the most appropriate unit.
      Specified by:
      div in interface Measure<PowerUnit>
      Parameters:
      divisor - the measurement to divide by.
      Returns:
      the division result
    • divide

      @Deprecated(since="2025", forRemoval=true) default Voltage divide(Current divisor)
      Deprecated, for removal: This API element is subject to removal in a future version.
      use div instead. This was renamed for consistency with other languages like Kotlin
      Divides this measure by an electric current and returns the result in the most appropriate unit.
      Specified by:
      divide in interface Measure<PowerUnit>
      Parameters:
      divisor - the measurement to divide by.
      Returns:
      the division result
    • div

      default Power div(Dimensionless divisor)
      Description copied from interface: Measure
      Divides this measure by a dimensionless scalar and returns the result.
      Specified by:
      div in interface Measure<PowerUnit>
      Parameters:
      divisor - the measurement to divide by.
      Returns:
      the division result
    • divide

      @Deprecated(since="2025", forRemoval=true) default Power divide(Dimensionless divisor)
      Deprecated, for removal: This API element is subject to removal in a future version.
      use div instead. This was renamed for consistency with other languages like Kotlin
      Divides this measure by a dimensionless scalar and returns the result.
      Specified by:
      divide in interface Measure<PowerUnit>
      Parameters:
      divisor - the measurement to divide by.
      Returns:
      the division result
    • times

      default Power times(Dimensionless multiplier)
      Description copied from interface: Measure
      Multiplies this measure by a scalar dimensionless multiplier.
      Specified by:
      times in interface Measure<PowerUnit>
      Parameters:
      multiplier - the scalar multiplication factor
      Returns:
      the scaled result
    • times

      default Mult<PowerUnit,DistanceUnit> times(Distance multiplier)
      Description copied from interface: Measure
      Multiplies this measure by a distance and returns the resulting measure in the most appropriate unit.
      Specified by:
      times in interface Measure<PowerUnit>
      Parameters:
      multiplier - the measurement to multiply by.
      Returns:
      the multiplication result
    • div

      default Per<PowerUnit,DistanceUnit> div(Distance divisor)
      Description copied from interface: Measure
      Divides this measure by a distance and returns the result in the most appropriate unit.
      Specified by:
      div in interface Measure<PowerUnit>
      Parameters:
      divisor - the measurement to divide by.
      Returns:
      the division result
    • divide

      Deprecated, for removal: This API element is subject to removal in a future version.
      use div instead. This was renamed for consistency with other languages like Kotlin
      Divides this measure by a distance and returns the result in the most appropriate unit.
      Specified by:
      divide in interface Measure<PowerUnit>
      Parameters:
      divisor - the measurement to divide by.
      Returns:
      the division result
    • times

      default Mult<PowerUnit,EnergyUnit> times(Energy multiplier)
      Description copied from interface: Measure
      Multiplies this measure by an energy and returns the resulting measure in the most appropriate unit.
      Specified by:
      times in interface Measure<PowerUnit>
      Parameters:
      multiplier - the measurement to multiply by.
      Returns:
      the multiplication result
    • div

      default Frequency div(Energy divisor)
      Description copied from interface: Measure
      Divides this measure by an energy and returns the result in the most appropriate unit.
      Specified by:
      div in interface Measure<PowerUnit>
      Parameters:
      divisor - the measurement to divide by.
      Returns:
      the division result
    • divide

      @Deprecated(since="2025", forRemoval=true) default Frequency divide(Energy divisor)
      Deprecated, for removal: This API element is subject to removal in a future version.
      use div instead. This was renamed for consistency with other languages like Kotlin
      Divides this measure by an energy and returns the result in the most appropriate unit.
      Specified by:
      divide in interface Measure<PowerUnit>
      Parameters:
      divisor - the measurement to divide by.
      Returns:
      the division result
    • times

      default Mult<PowerUnit,ForceUnit> times(Force multiplier)
      Description copied from interface: Measure
      Multiplies this measure by a force and returns the resulting measure in the most appropriate unit.
      Specified by:
      times in interface Measure<PowerUnit>
      Parameters:
      multiplier - the measurement to multiply by.
      Returns:
      the multiplication result
    • div

      default Per<PowerUnit,ForceUnit> div(Force divisor)
      Description copied from interface: Measure
      Divides this measure by a force and returns the result in the most appropriate unit.
      Specified by:
      div in interface Measure<PowerUnit>
      Parameters:
      divisor - the measurement to divide by.
      Returns:
      the division result
    • divide

      @Deprecated(since="2025", forRemoval=true) default Per<PowerUnit,ForceUnit> divide(Force divisor)
      Deprecated, for removal: This API element is subject to removal in a future version.
      use div instead. This was renamed for consistency with other languages like Kotlin
      Divides this measure by a force and returns the result in the most appropriate unit.
      Specified by:
      divide in interface Measure<PowerUnit>
      Parameters:
      divisor - the measurement to divide by.
      Returns:
      the division result
    • times

      default Mult<PowerUnit,FrequencyUnit> times(Frequency multiplier)
      Description copied from interface: Measure
      Multiplies this measure by a frequency and returns the resulting measure in the most appropriate unit. This often - but not always - means implementations return a variation of a Per measure.
      Specified by:
      times in interface Measure<PowerUnit>
      Parameters:
      multiplier - the measurement to multiply by.
      Returns:
      the multiplication result
    • div

      default Per<PowerUnit,FrequencyUnit> div(Frequency divisor)
      Description copied from interface: Measure
      Divides this measure by a frequency and returns the result in the most appropriate unit.
      Specified by:
      div in interface Measure<PowerUnit>
      Parameters:
      divisor - the measurement to divide by.
      Returns:
      the division result
    • divide

      Deprecated, for removal: This API element is subject to removal in a future version.
      use div instead. This was renamed for consistency with other languages like Kotlin
      Divides this measure by a frequency and returns the result in the most appropriate unit.
      Specified by:
      divide in interface Measure<PowerUnit>
      Parameters:
      divisor - the measurement to divide by.
      Returns:
      the division result
    • times

      Description copied from interface: Measure
      Multiplies this measure by a linear acceleration and returns the resulting measure in the most appropriate unit.
      Specified by:
      times in interface Measure<PowerUnit>
      Parameters:
      multiplier - the measurement to multiply by.
      Returns:
      the multiplication result
    • div

      Description copied from interface: Measure
      Divides this measure by a linear acceleration and returns the result in the most appropriate unit.
      Specified by:
      div in interface Measure<PowerUnit>
      Parameters:
      divisor - the measurement to divide by.
      Returns:
      the division result
    • divide

      Deprecated, for removal: This API element is subject to removal in a future version.
      use div instead. This was renamed for consistency with other languages like Kotlin
      Divides this measure by a linear acceleration and returns the result in the most appropriate unit.
      Specified by:
      divide in interface Measure<PowerUnit>
      Parameters:
      divisor - the measurement to divide by.
      Returns:
      the division result
    • times

      Description copied from interface: Measure
      Multiplies this measure by a linear momentum and returns the resulting measure in the most appropriate unit.
      Specified by:
      times in interface Measure<PowerUnit>
      Parameters:
      multiplier - the measurement to multiply by.
      Returns:
      the multiplication result
    • div

      Description copied from interface: Measure
      Divides this measure by a linear momentum and returns the result in the most appropriate unit.
      Specified by:
      div in interface Measure<PowerUnit>
      Parameters:
      divisor - the measurement to divide by.
      Returns:
      the division result
    • divide

      Deprecated, for removal: This API element is subject to removal in a future version.
      use div instead. This was renamed for consistency with other languages like Kotlin
      Divides this measure by a linear momentum and returns the result in the most appropriate unit.
      Specified by:
      divide in interface Measure<PowerUnit>
      Parameters:
      divisor - the measurement to divide by.
      Returns:
      the division result
    • times

      Description copied from interface: Measure
      Multiplies this measure by a linear velocity and returns the resulting measure in the most appropriate unit.
      Specified by:
      times in interface Measure<PowerUnit>
      Parameters:
      multiplier - the measurement to multiply by.
      Returns:
      the multiplication result
    • div

      Description copied from interface: Measure
      Divides this measure by a linear velocity and returns the result in the most appropriate unit.
      Specified by:
      div in interface Measure<PowerUnit>
      Parameters:
      divisor - the measurement to divide by.
      Returns:
      the division result
    • divide

      Deprecated, for removal: This API element is subject to removal in a future version.
      use div instead. This was renamed for consistency with other languages like Kotlin
      Divides this measure by a linear velocity and returns the result in the most appropriate unit.
      Specified by:
      divide in interface Measure<PowerUnit>
      Parameters:
      divisor - the measurement to divide by.
      Returns:
      the division result
    • times

      default Mult<PowerUnit,MassUnit> times(Mass multiplier)
      Description copied from interface: Measure
      Multiplies this measure by a mass and returns the resulting measure in the most appropriate unit.
      Specified by:
      times in interface Measure<PowerUnit>
      Parameters:
      multiplier - the measurement to multiply by.
      Returns:
      the multiplication result
    • div

      default Per<PowerUnit,MassUnit> div(Mass divisor)
      Description copied from interface: Measure
      Divides this measure by a mass and returns the result in the most appropriate unit.
      Specified by:
      div in interface Measure<PowerUnit>
      Parameters:
      divisor - the measurement to divide by.
      Returns:
      the division result
    • divide

      @Deprecated(since="2025", forRemoval=true) default Per<PowerUnit,MassUnit> divide(Mass divisor)
      Deprecated, for removal: This API element is subject to removal in a future version.
      use div instead. This was renamed for consistency with other languages like Kotlin
      Divides this measure by a mass and returns the result in the most appropriate unit.
      Specified by:
      divide in interface Measure<PowerUnit>
      Parameters:
      divisor - the measurement to divide by.
      Returns:
      the division result
    • times

      Description copied from interface: Measure
      Multiplies this measure by a moment of intertia and returns the resulting measure in the most appropriate unit.
      Specified by:
      times in interface Measure<PowerUnit>
      Parameters:
      multiplier - the measurement to multiply by.
      Returns:
      the multiplication result
    • div

      Description copied from interface: Measure
      Divides this measure by a moment of inertia and returns the result in the most appropriate unit.
      Specified by:
      div in interface Measure<PowerUnit>
      Parameters:
      divisor - the measurement to divide by.
      Returns:
      the division result
    • divide

      Deprecated, for removal: This API element is subject to removal in a future version.
      use div instead. This was renamed for consistency with other languages like Kotlin
      Divides this measure by a moment of inertia and returns the result in the most appropriate unit.
      Specified by:
      divide in interface Measure<PowerUnit>
      Parameters:
      divisor - the measurement to divide by.
      Returns:
      the division result
    • times

      default Mult<PowerUnit,MultUnit<?,?>> times(Mult<?,?> multiplier)
      Description copied from interface: Measure
      Multiplies this measure by a generic multiplied measure and returns the resulting measure in the most appropriate unit.
      Specified by:
      times in interface Measure<PowerUnit>
      Parameters:
      multiplier - the measurement to multiply by.
      Returns:
      the multiplication result
    • div

      default Per<PowerUnit,MultUnit<?,?>> div(Mult<?,?> divisor)
      Description copied from interface: Measure
      Divides this measure by a generic multiplication and returns the result in the most appropriate unit.
      Specified by:
      div in interface Measure<PowerUnit>
      Parameters:
      divisor - the measurement to divide by.
      Returns:
      the division result
    • divide

      @Deprecated(since="2025", forRemoval=true) default Per<PowerUnit,MultUnit<?,?>> divide(Mult<?,?> divisor)
      Deprecated, for removal: This API element is subject to removal in a future version.
      use div instead. This was renamed for consistency with other languages like Kotlin
      Divides this measure by a generic multiplication and returns the result in the most appropriate unit.
      Specified by:
      divide in interface Measure<PowerUnit>
      Parameters:
      divisor - the measurement to divide by.
      Returns:
      the division result
    • times

      default Mult<PowerUnit,PerUnit<?,?>> times(Per<?,?> multiplier)
      Description copied from interface: Measure
      Multiplies this measure by a generic ratio measurement and returns the resulting measure in the most appropriate unit.
      Specified by:
      times in interface Measure<PowerUnit>
      Parameters:
      multiplier - the measurement to multiply by.
      Returns:
      the multiplication result
    • div

      default Per<PowerUnit,PerUnit<?,?>> div(Per<?,?> divisor)
      Description copied from interface: Measure
      Divides this measure by a generic ratio and returns the result in the most appropriate unit.
      Specified by:
      div in interface Measure<PowerUnit>
      Parameters:
      divisor - the measurement to divide by.
      Returns:
      the division result
    • divide

      @Deprecated(since="2025", forRemoval=true) default Per<PowerUnit,PerUnit<?,?>> divide(Per<?,?> divisor)
      Deprecated, for removal: This API element is subject to removal in a future version.
      use div instead. This was renamed for consistency with other languages like Kotlin
      Divides this measure by a generic ratio and returns the result in the most appropriate unit.
      Specified by:
      divide in interface Measure<PowerUnit>
      Parameters:
      divisor - the measurement to divide by.
      Returns:
      the division result
    • times

      default Mult<PowerUnit,PowerUnit> times(Power multiplier)
      Description copied from interface: Measure
      Multiplies this measure by a power and returns the resulting measure in the most appropriate unit.
      Specified by:
      times in interface Measure<PowerUnit>
      Parameters:
      multiplier - the measurement to multiply by.
      Returns:
      the multiplication result
    • div

      default Dimensionless div(Power divisor)
      Description copied from interface: Measure
      Divides this measure by a power and returns the result in the most appropriate unit.
      Specified by:
      div in interface Measure<PowerUnit>
      Parameters:
      divisor - the measurement to divide by.
      Returns:
      the division result
    • divide

      @Deprecated(since="2025", forRemoval=true) default Dimensionless divide(Power divisor)
      Deprecated, for removal: This API element is subject to removal in a future version.
      use div instead. This was renamed for consistency with other languages like Kotlin
      Divides this measure by a power and returns the result in the most appropriate unit.
      Specified by:
      divide in interface Measure<PowerUnit>
      Parameters:
      divisor - the measurement to divide by.
      Returns:
      the division result
    • times

      default Mult<PowerUnit,ResistanceUnit> times(Resistance multiplier)
      Description copied from interface: Measure
      Multiplies this measure by a resistance and returns the resulting measure in the most appropriate unit.
      Specified by:
      times in interface Measure<PowerUnit>
      Parameters:
      multiplier - the measurement to multiply by.
      Returns:
      the multiplication result
    • div

      Description copied from interface: Measure
      Divides this measure by a resistance and returns the result in the most appropriate unit.
      Specified by:
      div in interface Measure<PowerUnit>
      Parameters:
      divisor - the measurement to divide by.
      Returns:
      the division result
    • divide

      Deprecated, for removal: This API element is subject to removal in a future version.
      use div instead. This was renamed for consistency with other languages like Kotlin
      Divides this measure by a resistance and returns the result in the most appropriate unit.
      Specified by:
      divide in interface Measure<PowerUnit>
      Parameters:
      divisor - the measurement to divide by.
      Returns:
      the division result
    • times

      Description copied from interface: Measure
      Multiplies this measure by a temperature and returns the resulting measure in the most appropriate unit.
      Specified by:
      times in interface Measure<PowerUnit>
      Parameters:
      multiplier - the measurement to multiply by.
      Returns:
      the multiplication result
    • div

      Description copied from interface: Measure
      Divides this measure by a temperature and returns the result in the most appropriate unit.
      Specified by:
      div in interface Measure<PowerUnit>
      Parameters:
      divisor - the measurement to divide by.
      Returns:
      the division result
    • divide

      Deprecated, for removal: This API element is subject to removal in a future version.
      use div instead. This was renamed for consistency with other languages like Kotlin
      Divides this measure by a temperature and returns the result in the most appropriate unit.
      Specified by:
      divide in interface Measure<PowerUnit>
      Parameters:
      divisor - the measurement to divide by.
      Returns:
      the division result
    • times

      default Energy times(Time multiplier)
      Description copied from interface: Measure
      Multiplies this measure by a time and returns the resulting measure in the most appropriate unit.
      Specified by:
      times in interface Measure<PowerUnit>
      Parameters:
      multiplier - the measurement to multiply by.
      Returns:
      the multiplication result
    • div

      default Velocity<PowerUnit> div(Time divisor)
      Description copied from interface: Measure
      Divides this measure by a time and returns the result in the most appropriate unit. This will often - but not always - result in a Per type like LinearVelocity or Acceleration.
      Specified by:
      div in interface Measure<PowerUnit>
      Parameters:
      divisor - the measurement to divide by.
      Returns:
      the division result
    • divide

      @Deprecated(since="2025", forRemoval=true) default Velocity<PowerUnit> divide(Time divisor)
      Deprecated, for removal: This API element is subject to removal in a future version.
      use div instead. This was renamed for consistency with other languages like Kotlin
      Divides this measure by a time and returns the result in the most appropriate unit. This will often - but not always - result in a Per type like LinearVelocity or Acceleration.
      Specified by:
      divide in interface Measure<PowerUnit>
      Parameters:
      divisor - the measurement to divide by.
      Returns:
      the division result
    • times

      default Mult<PowerUnit,TorqueUnit> times(Torque multiplier)
      Description copied from interface: Measure
      Multiplies this measure by a torque and returns the resulting measure in the most appropriate unit.
      Specified by:
      times in interface Measure<PowerUnit>
      Parameters:
      multiplier - the measurement to multiply by.
      Returns:
      the multiplication result
    • div

      default Per<PowerUnit,TorqueUnit> div(Torque divisor)
      Description copied from interface: Measure
      Divides this measure by a torque and returns the result in the most appropriate unit.
      Specified by:
      div in interface Measure<PowerUnit>
      Parameters:
      divisor - the measurement to divide by.
      Returns:
      the division result
    • divide

      @Deprecated(since="2025", forRemoval=true) default Per<PowerUnit,TorqueUnit> divide(Torque divisor)
      Deprecated, for removal: This API element is subject to removal in a future version.
      use div instead. This was renamed for consistency with other languages like Kotlin
      Divides this measure by a torque and returns the result in the most appropriate unit.
      Specified by:
      divide in interface Measure<PowerUnit>
      Parameters:
      divisor - the measurement to divide by.
      Returns:
      the division result
    • times

      default Mult<PowerUnit,VelocityUnit<?>> times(Velocity<?> multiplier)
      Description copied from interface: Measure
      Multiplies this measure by a generic velocity and returns the resulting measure in the most appropriate unit.
      Specified by:
      times in interface Measure<PowerUnit>
      Parameters:
      multiplier - the measurement to multiply by.
      Returns:
      the multiplication result
    • div

      default Per<PowerUnit,VelocityUnit<?>> div(Velocity<?> divisor)
      Description copied from interface: Measure
      Divides this measure by a generic velocity and returns the result in the most appropriate unit.
      Specified by:
      div in interface Measure<PowerUnit>
      Parameters:
      divisor - the measurement to divide by.
      Returns:
      the division result
    • divide

      @Deprecated(since="2025", forRemoval=true) default Per<PowerUnit,VelocityUnit<?>> divide(Velocity<?> divisor)
      Deprecated, for removal: This API element is subject to removal in a future version.
      use div instead. This was renamed for consistency with other languages like Kotlin
      Divides this measure by a generic velocity and returns the result in the most appropriate unit.
      Specified by:
      divide in interface Measure<PowerUnit>
      Parameters:
      divisor - the measurement to divide by.
      Returns:
      the division result
    • times

      default Mult<PowerUnit,VoltageUnit> times(Voltage multiplier)
      Description copied from interface: Measure
      Multiplies this measure by a voltage and returns the resulting measure in the most appropriate unit.
      Specified by:
      times in interface Measure<PowerUnit>
      Parameters:
      multiplier - the measurement to multiply by.
      Returns:
      the multiplication result
    • div

      default Current div(Voltage divisor)
      Description copied from interface: Measure
      Divides this measure by a voltage and returns the result in the most appropriate unit.
      Specified by:
      div in interface Measure<PowerUnit>
      Parameters:
      divisor - the measurement to divide by.
      Returns:
      the division result
    • divide

      @Deprecated(since="2025", forRemoval=true) default Current divide(Voltage divisor)
      Deprecated, for removal: This API element is subject to removal in a future version.
      use div instead. This was renamed for consistency with other languages like Kotlin
      Divides this measure by a voltage and returns the result in the most appropriate unit.
      Specified by:
      divide in interface Measure<PowerUnit>
      Parameters:
      divisor - the measurement to divide by.
      Returns:
      the division result