Class UncheckedListProofAdapter<E>
- java.lang.Object
-
- com.exonum.binding.common.proofs.list.UncheckedListProofAdapter<E>
-
- All Implemented Interfaces:
UncheckedListProof
public class UncheckedListProofAdapter<E> extends Object implements UncheckedListProof
An Adapter class used to simplify work with ListProof interfaces.
-
-
Constructor Summary
Constructors Constructor Description UncheckedListProofAdapter(ListProofNode rootProofNode, Serializer<E> serializer)Creates UncheckedListProofAdapter for convenient usage of ListProof interfaces.
-
Method Summary
Modifier and Type Method Description CheckedListProofcheck()Checks that a proof has either correct or incorrect structure and returns a CheckedListProof.ListProofNodegetRootProofNode()Returns raw source proof of this UncheckedListProof.
-
-
-
Constructor Detail
-
UncheckedListProofAdapter
public UncheckedListProofAdapter(ListProofNode rootProofNode, Serializer<E> serializer)
Creates UncheckedListProofAdapter for convenient usage of ListProof interfaces.UncheckedListProofAdapter
check()method will return CheckedListProof containing results of list proof verification.- Parameters:
rootProofNode- source list proofserializer- proof elements serializer
-
-
Method Detail
-
check
public CheckedListProof check()
Description copied from interface:UncheckedListProofChecks that a proof has either correct or incorrect structure and returns a CheckedListProof.- Specified by:
checkin interfaceUncheckedListProof
-
getRootProofNode
public ListProofNode getRootProofNode()
Description copied from interface:UncheckedListProofReturns raw source proof of this UncheckedListProof.- Specified by:
getRootProofNodein interfaceUncheckedListProof
-
-