Class TestUtils.TestField
java.lang.Object
dk.jonaslindstrom.ruffini.common.util.TestUtils.TestField
- All Implemented Interfaces:
AdditiveGroup<Integer>,CommutativeMonoid<Integer>,Field<Integer>,Group<Integer>,Monoid<Integer>,Ring<Integer>,Semigroup<Integer>,SemiRing<Integer>,Set<Integer>
- Enclosing class:
- TestUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the result of a+b.booleanReturnstrueif and only if a = b as elements of this set.identity()Return the identity element of this monoid.Return the inverse a-1.Return the result of the product ab in this group.Return -a.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, toString, 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.Monoid
isIdentity, power
-
Constructor Details
-
TestField
-
-
Method Details
-
negate
Description copied from interface:AdditiveGroupReturn -a.- Specified by:
negatein interfaceAdditiveGroup<Integer>
-
add
Description copied from interface:CommutativeMonoidReturn the result of a+b.- Specified by:
addin interfaceCommutativeMonoid<Integer>
-
zero
Description copied from interface:CommutativeMonoidReturn the zero element.- Specified by:
zeroin interfaceCommutativeMonoid<Integer>
-
invert
Description copied from interface:GroupReturn the inverse a-1. -
identity
Description copied from interface:MonoidReturn the identity element of this monoid. -
multiply
Description copied from interface:SemigroupReturn the result of the product ab in this group. -
toString
Description copied from interface:SetReturns a human-readable string representation of an element in this set. -
equals
Description copied from interface:SetReturnstrueif and only if a = b as elements of this set.
-