Class UncheckedListProofAdapter<E>
- java.lang.Object
-
- com.exonum.binding.common.proofs.list.UncheckedListProofAdapter<E>
-
- All Implemented Interfaces:
UncheckedListProof
public class UncheckedListProofAdapter<E> extends java.lang.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CheckedListProof
check()
Checks that a proof has either correct or incorrect structure and returns a CheckedListProof.ListProofNode
getRootProofNode()
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:UncheckedListProof
Checks that a proof has either correct or incorrect structure and returns a CheckedListProof.- Specified by:
check
in interfaceUncheckedListProof
-
getRootProofNode
public ListProofNode getRootProofNode()
Description copied from interface:UncheckedListProof
Returns raw source proof of this UncheckedListProof.- Specified by:
getRootProofNode
in interfaceUncheckedListProof
-
-