public final class QuaternionGroup extends FiniteGroup
order| Modifier and Type | Method and Description |
|---|---|
Group.Member[] |
getElements()
Returns the elements of this group.
|
static QuaternionGroup |
getInstance()
Constructs the quaternion group.
|
Monoid.Member |
identity()
Returns the identity element.
|
boolean |
isIdentity(Monoid.Member a)
Returns true if the element is the identity element of this group.
|
boolean |
isInverse(Group.Member a,
Group.Member b)
Returns true if one element is the inverse of the other.
|
java.lang.String |
toString() |
orderpublic static final QuaternionGroup getInstance()
public java.lang.String toString()
toString in class java.lang.Objectpublic Group.Member[] getElements()
getElements in class FiniteGrouppublic Monoid.Member identity()
public boolean isIdentity(Monoid.Member a)
a - a group elementpublic boolean isInverse(Group.Member a, Group.Member b)
a - a group elementb - a group element