|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object JSci.maths.fields.IntegerRing
public final class IntegerRing
The IntegerRing class encapsulates the ring of integer numbers.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface JSci.maths.fields.Ring |
---|
Ring.Member |
Field Summary | |
---|---|
static MathInteger |
ONE
|
static MathInteger |
ZERO
|
Method Summary | |
---|---|
static IntegerRing |
getInstance()
Constructs a ring of integer numbers. |
boolean |
isNegative(AbelianGroup.Member a,
AbelianGroup.Member b)
Returns true if one integer number is the negative of the other. |
boolean |
isOne(Ring.Member r)
Returns true if the integer number is equal to one. |
boolean |
isZero(AbelianGroup.Member g)
Returns true if the integer number is equal to zero. |
Ring.Member |
one()
Returns the integer number one. |
AbelianGroup.Member |
zero()
Returns the integer number zero. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final MathInteger ZERO
public static final MathInteger ONE
Method Detail |
---|
public static final IntegerRing getInstance()
public AbelianGroup.Member zero()
zero
in interface AbelianGroup
public boolean isZero(AbelianGroup.Member g)
isZero
in interface AbelianGroup
g
- a group memberpublic boolean isNegative(AbelianGroup.Member a, AbelianGroup.Member b)
isNegative
in interface AbelianGroup
a
- a group memberb
- a group memberpublic Ring.Member one()
one
in interface Ring
public boolean isOne(Ring.Member r)
isOne
in interface Ring
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |