Package com.method5.jot.entity
Record Class Phase
java.lang.Object
java.lang.Record
com.method5.jot.entity.Phase
Phase — record for phase in the Jot SDK. Provides key management and signing; types and data
models.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionPhase(Phase.Type type, int extrinsicIndex) Creates an instance of aPhaserecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic Phasedecode(ScaleReader reader) final booleanIndicates whether some other object is "equal to" this one.intReturns the value of theextrinsicIndexrecord component.final inthashCode()Returns a hash code value for this object.booleanisApplyExtrinsic(int index) final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
Phase
Creates an instance of aPhaserecord class.- Parameters:
type- the value for thetyperecord componentextrinsicIndex- the value for theextrinsicIndexrecord component
-
-
Method Details
-
isApplyExtrinsic
public boolean isApplyExtrinsic(int index) -
decode
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
extrinsicIndex
public int extrinsicIndex()Returns the value of theextrinsicIndexrecord component.- Returns:
- the value of the
extrinsicIndexrecord component
-