S
- Abstract dimension types are recursively defined to enforce type-safetypublic interface Dimension<S extends Dimension<S>> extends ComparableUsing<S>, Serializable
Dimension
is the basis for a physical dimension. It models a dimension has having a measure represented as a
Rational
value and common arithmetic operations which also serve as operator overloads.
ComparableUsing.EqualityMode, ComparableUsing.Operator
Modifier and Type | Method and Description |
---|---|
S |
copy(Rational value)
Given a value produce a copy of this dimension with the given value
|
default S |
div(Number operand) |
default Rational |
div(S operand) |
S |
fromNumber(Rational value) |
default S |
minus(S operand) |
default S |
plus(S operand) |
default S |
rem(Number operand) |
default Rational |
rem(S operand) |
default S |
times(Number operand) |
default Rational |
toBaseNumber() |
Rational |
toNumber() |
default S |
unaryMinus() |
compareToUsing, equalityMode
compareTo
Copyright © 2024. All rights reserved.