RingType - The type of Euclidean ring that this is defined over.public abstract class AbstractEuclideanRing<RingType extends EuclideanRing<RingType>> extends AbstractRing<RingType> implements EuclideanRing<RingType>
EuclideanRing interface. It
defines common methods like times and divide methods so that implementations
only need to define the inline versions of them.| Constructor and Description |
|---|
AbstractEuclideanRing()
Creates a new
AbstractEuclideanRing. |
| Modifier and Type | Method and Description |
|---|---|
RingType |
divide(RingType other)
Divides
this value by the other value, returning the
result of the division as a new value. |
RingType |
times(RingType other)
Multiplies
this value by the other value, returning the
result of the multiplication as a new value. |
clone, dotTimes, isZero, minus, negative, negativeEquals, plus, scale, scaledMinus, scaledMinusEquals, scaledPlus, zeroequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdivideEquals, timesEqualsclone, dotTimes, dotTimesEquals, equals, equals, isZero, isZero, minus, minusEquals, negative, negativeEquals, plus, plusEquals, scale, scaledMinus, scaledMinusEquals, scaledPlus, scaledPlusEquals, scaleEquals, zeropublic AbstractEuclideanRing()
AbstractEuclideanRing.public RingType times(RingType other)
EuclideanRingthis value by the other value, returning the
result of the multiplication as a new value.times in interface EuclideanRing<RingType extends EuclideanRing<RingType>>other - The other value.public RingType divide(RingType other)
EuclideanRingthis value by the other value, returning the
result of the division as a new value.divide in interface EuclideanRing<RingType extends EuclideanRing<RingType>>other - The other value.