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 aPhase
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic Phase
decode
(ScaleReader reader) final boolean
Indicates whether some other object is "equal to" this one.int
Returns the value of theextrinsicIndex
record component.final int
hashCode()
Returns a hash code value for this object.boolean
isApplyExtrinsic
(int index) toString()
Returns a string representation of this record class.type()
Returns the value of thetype
record component.
-
Constructor Details
-
Phase
Creates an instance of aPhase
record class.- Parameters:
type
- the value for thetype
record componentextrinsicIndex
- the value for theextrinsicIndex
record 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 thetype
record component.- Returns:
- the value of the
type
record component
-
extrinsicIndex
public int extrinsicIndex()Returns the value of theextrinsicIndex
record component.- Returns:
- the value of the
extrinsicIndex
record component
-