A
- The unit type on the left hand sideB
- The unit type on the right hand sideD
- The Dimension
type expressed using this binary unit typeU
- This type (recursive to enforce type-safety).public abstract class AbstractBinaryUnit<A extends Unit,B extends Unit,D extends Dimension<D>,U extends AbstractBinaryUnit<A,B,D,U>> extends Object implements Unit<D,U>
VelocityUnit
which is the quotient of LengthUnit
and
TimeUnit
.
ComparableUsing.EqualityMode, ComparableUsing.Operator
Modifier | Constructor and Description |
---|---|
protected |
AbstractBinaryUnit(A leftUnit,
B rightUnit) |
protected |
AbstractBinaryUnit(A leftUnit,
B rightUnit,
Rational factor) |
protected |
AbstractBinaryUnit(A leftUnit,
B rightUnit,
Rational factor,
String name) |
protected |
AbstractBinaryUnit(A leftUnit,
B rightUnit,
Rational factor,
String name,
String symbol) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Rational |
from(D r) |
Rational |
getFactor() |
protected A |
getLeftUnit() |
String |
getName() |
protected B |
getRightUnit() |
String |
getSymbol() |
int |
hashCode() |
String |
toString() |
clone, emptyArray, finalize, getClass, jailbreak, notify, notifyAll, wait, wait, wait
compareTo, copy, fromNumber, getFullName, getFullSymbol, makeDimension, postfixBind, toBaseUnits
div, div, minus, plus, rem, rem, times, toBaseNumber, toNumber, unaryMinus
compareToUsing, equalityMode
protected AbstractBinaryUnit(A leftUnit, B rightUnit, Rational factor, String name)
Copyright © 2024. All rights reserved.