public abstract class PairingTargetGroupElementImpl extends java.lang.Object implements GroupElementImpl, UniqueByteRepresentable
| Modifier and Type | Field and Description |
|---|---|
protected ExtensionFieldElement |
elem |
protected PairingTargetGroupImpl |
group |
| Constructor and Description |
|---|
PairingTargetGroupElementImpl(PairingTargetGroupImpl g,
ExtensionFieldElement fe) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
ExtensionFieldElement |
getElem() |
Representation |
getRepresentation()
The representation of this object.
|
PairingTargetGroupImpl |
getStructure()
Retrieves the group this element belongs to.
|
int |
hashCode() |
PairingTargetGroupElementImpl |
inv()
Calculates the inverse of this group element.
|
PairingTargetGroupElementImpl |
op(GroupElementImpl e)
Calculates the result of this op e.
|
java.lang.String |
toString() |
ByteAccumulator |
updateAccumulator(ByteAccumulator accumulator)
Updates the ByteAccumulator with the unique byte representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitisNeutralElement, pow, squaregetUniqueByteRepresentationprotected ExtensionFieldElement elem
protected PairingTargetGroupImpl group
public PairingTargetGroupElementImpl(PairingTargetGroupImpl g, ExtensionFieldElement fe)
public ExtensionFieldElement getElem()
public Representation getRepresentation()
RepresentableReprUtilgetRepresentation in interface RepresentableRepresentationpublic PairingTargetGroupImpl getStructure()
GroupElementImplgetStructure in interface GroupElementImplpublic PairingTargetGroupElementImpl inv()
GroupElementImplinv in interface GroupElementImplx.op(this).equals(getStructure().getNeutralElement())public PairingTargetGroupElementImpl op(GroupElementImpl e) throws java.lang.IllegalArgumentException
GroupElementImplop in interface GroupElementImple - right hand side of the operationjava.lang.IllegalArgumentException - if e is of the wrong typepublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic ByteAccumulator updateAccumulator(ByteAccumulator accumulator)
UniqueByteRepresentableThe input to the accumulators update function is an injective (with respect to a given domain) byte encoding of this object.
For many use-cases, the AnnotatedUbrUtil can be used to quickly implement this method.
updateAccumulator in interface UniqueByteRepresentable