Package org.polkadot.types.type
Class MisbehaviorReport.MisbehaviorKind
- java.lang.Object
-
- org.polkadot.types.codec.Base<Codec>
-
- org.polkadot.types.codec.EnumType
-
- org.polkadot.types.type.MisbehaviorReport.MisbehaviorKind
-
- All Implemented Interfaces:
Codec
- Enclosing class:
- MisbehaviorReport
public static class MisbehaviorReport.MisbehaviorKind extends EnumType
AnEnumTypecontaining a Bft misbehaviour
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.polkadot.types.codec.EnumType
EnumType.EnumConstructor<T extends Codec>
-
-
Constructor Summary
Constructors Constructor Description MisbehaviorKind(java.lang.Object value, int index)
-
Method Summary
Modifier and Type Method Description MisbehaviorReport.BftDoubleCommitasBftDoubleCommit()Returns the item as a BftDoubleCommitMisbehaviorReport.BftDoublePrepareasBftDoublePrepare()Returns the item as a BftDoublePrepareMisbehaviorReport.BftDoubleProposeasBftDoublePropose()Returns the item as a BftDoubleProposeMisbehaviorReport.BftProposeOutOfTurnasBftProposeOutOfTurn()Returns the item as a BftProposeOutOfTurn-
Methods inherited from class org.polkadot.types.codec.EnumType
eq, getEncodedLength, getType, index, isEmpty, isNone, isNull, isType, toHex, toJson, toNumber, toString, toU8a, value, with
-
-
-
-
Method Detail
-
asBftDoubleCommit
public MisbehaviorReport.BftDoubleCommit asBftDoubleCommit()
Returns the item as a BftDoubleCommit
-
asBftDoublePrepare
public MisbehaviorReport.BftDoublePrepare asBftDoublePrepare()
Returns the item as a BftDoublePrepare
-
asBftDoublePropose
public MisbehaviorReport.BftDoublePropose asBftDoublePropose()
Returns the item as a BftDoublePropose
-
asBftProposeOutOfTurn
public MisbehaviorReport.BftProposeOutOfTurn asBftProposeOutOfTurn()
Returns the item as a BftProposeOutOfTurn
-
-