Class Integers
java.lang.Object
dk.jonaslindstrom.ruffini.integers.structures.Integers
- All Implemented Interfaces:
AdditiveGroup<Integer>,CommutativeMonoid<Integer>,EuclideanDomain<Integer>,Monoid<Integer>,OrderedSet<Integer>,Ring<Integer>,Semigroup<Integer>,SemiRing<Integer>,Set<Integer>
-
Method Summary
Modifier and TypeMethodDescriptionReturn the result of a+b.Returns a pair (q, r) such that a = qb + r and 0 ≤ f(r) < f(b) where f is the Euclidean function (seeEuclideanDomain.norm(E)for this domain.booleanReturnstrueif and only if a = b as elements of this set.static Integersidentity()Return the identity element of this monoid.Return the result of the product ab in this group.Return -a.The euclidean function is a multiplicative map that maps elements of the domain to the integers and is used in the division ofEuclideanDomain.divide(E, E).toString()Returns a human-readable string representation of an element in this set.zero()Return the zero element.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface dk.jonaslindstrom.ruffini.common.abstractions.AdditiveGroup
doubling, isZero, scale, scale, subtract, sumMethods inherited from interface dk.jonaslindstrom.ruffini.common.abstractions.CommutativeMonoid
add, addMethods inherited from interface dk.jonaslindstrom.ruffini.common.abstractions.EuclideanDomain
abs, divide, divideExact, divideExact, divides, mod, modMethods inherited from interface dk.jonaslindstrom.ruffini.common.abstractions.Monoid
isIdentity, powerMethods inherited from interface dk.jonaslindstrom.ruffini.common.abstractions.OrderedSet
greaterThan, greaterThanOrEqual, lessThan, lessThanOrEqual
-
Method Details
-
getInstance
-
multiply
Description copied from interface:SemigroupReturn the result of the product ab in this group. -
identity
Description copied from interface:MonoidReturn the identity element of this monoid. -
toString
Description copied from interface:SetReturns a human-readable string representation of an element in this set. -
add
Description copied from interface:CommutativeMonoidReturn the result of a+b.- Specified by:
addin interfaceCommutativeMonoid<Integer>
-
negate
Description copied from interface:AdditiveGroupReturn -a.- Specified by:
negatein interfaceAdditiveGroup<Integer>
-
zero
Description copied from interface:CommutativeMonoidReturn the zero element.- Specified by:
zeroin interfaceCommutativeMonoid<Integer>
-
equals
Description copied from interface:SetReturnstrueif and only if a = b as elements of this set. -
divide
Description copied from interface:EuclideanDomainReturns a pair (q, r) such that a = qb + r and 0 ≤ f(r) < f(b) where f is the Euclidean function (seeEuclideanDomain.norm(E)for this domain.- Specified by:
dividein interfaceEuclideanDomain<Integer>
-
toString
-
norm
Description copied from interface:EuclideanDomainThe euclidean function is a multiplicative map that maps elements of the domain to the integers and is used in the division ofEuclideanDomain.divide(E, E).- Specified by:
normin interfaceEuclideanDomain<Integer>
-
getOrdering
- Specified by:
getOrderingin interfaceOrderedSet<Integer>
-