-
public final class ConsensusMatchTypeHelper class that provides consensus branch information for this SDK and the server to which it is connected and whether they are aligned. Essentially a wrapper for both branch ids with helper functions for communicating detailed error information to the end-user. Used in conjunction with cash.z.ecc.android.sdk.Synchronizer.validateConsensusBranch.
-
-
Field Summary
Fields Modifier and Type Field Description private final BooleanhasServerBranchprivate final BooleanhasSdkBranchprivate final BooleanisValidprivate final BooleanhasBothprivate final BooleanhasNeitherprivate final BooleanisServerNewerprivate final BooleanisSdkNewerprivate final StringerrorMessageprivate final ConsensusBranchIdsdkBranchprivate final ConsensusBranchIdserverBranch
-
Constructor Summary
Constructors Constructor Description ConsensusMatchType(ConsensusBranchId sdkBranch, ConsensusBranchId serverBranch)
-
Method Summary
Modifier and Type Method Description final BooleangetHasServerBranch()final BooleangetHasSdkBranch()final BooleangetIsValid()final BooleangetHasBoth()final BooleangetHasNeither()final BooleangetIsServerNewer()final BooleangetIsSdkNewer()final StringgetErrorMessage()final ConsensusBranchIdgetSdkBranch()final ConsensusBranchIdgetServerBranch()-
-
Constructor Detail
-
ConsensusMatchType
ConsensusMatchType(ConsensusBranchId sdkBranch, ConsensusBranchId serverBranch)
-
-
Method Detail
-
getHasServerBranch
final Boolean getHasServerBranch()
-
getHasSdkBranch
final Boolean getHasSdkBranch()
-
getIsValid
final Boolean getIsValid()
-
getHasBoth
final Boolean getHasBoth()
-
getHasNeither
final Boolean getHasNeither()
-
getIsServerNewer
final Boolean getIsServerNewer()
-
getIsSdkNewer
final Boolean getIsSdkNewer()
-
getErrorMessage
final String getErrorMessage()
-
getSdkBranch
final ConsensusBranchId getSdkBranch()
-
getServerBranch
final ConsensusBranchId getServerBranch()
-
-
-
-