/** * Divides this unit dimension by another. * @param that The other unit dimension. * @return The quotient of this unit dimension divided * by the other. */ public UnitDimension divideBy(UnitDimension that) { return multiplyBy(that.raiseTo(-1)); }
/** * Divides this unit dimension by another. * @param that The other unit dimension. * @return The quotient of this unit dimension divided * by the other. */ public UnitDimension divideBy(UnitDimension that) { return multiplyBy(that.raiseTo(-1)); }
/** * Raises this derived unit to a power. * * @param power * The power. * @return This derived unit raised to the given power. */ @Override protected Unit myRaiseTo(final int power) { return power == 1 ? this : new DerivedUnitImpl(dimension.raiseTo(power)); }
/** * Raises this derived unit to a power. * * @param power * The power. * @return This derived unit raised to the given power. */ @Override protected Unit myRaiseTo(final int power) { return power == 1 ? this : new DerivedUnitImpl(dimension.raiseTo(power)); }
"lengthDimension.isReciprocalOf(timeDimension) = \"" + lengthDimension.isReciprocalOf(timeDimension) + '"'); UnitDimension hertzDimension = timeDimension.raiseTo(-1); System.out.println("hertzDimension = \"" + hertzDimension + '"'); System.out.println( System.out.println( "lengthDimension.divideBy(timeDimension).raiseTo(2) = \"" + lengthDimension.divideBy(timeDimension).raiseTo(2) + '"');
"lengthDimension.isReciprocalOf(timeDimension) = \"" + lengthDimension.isReciprocalOf(timeDimension) + '"'); UnitDimension hertzDimension = timeDimension.raiseTo(-1); System.out.println("hertzDimension = \"" + hertzDimension + '"'); System.out.println( System.out.println( "lengthDimension.divideBy(timeDimension).raiseTo(2) = \"" + lengthDimension.divideBy(timeDimension).raiseTo(2) + '"');