Class CheckedFlatMapProof

java.lang.Object
com.exonum.binding.common.proofs.map.CheckedFlatMapProof
All Implemented Interfaces:
CheckedProof, CheckedMapProof

public class CheckedFlatMapProof
extends Object
implements CheckedMapProof
A checked flat map proof, which does not include any intermediate nodes.
  • Method Summary

    Modifier and Type Method Description
    boolean containsKey​(com.google.protobuf.ByteString key)
    If this proof is valid, returns true if there is a given key in the proof; false — if there is no such key.
    static CheckedFlatMapProof correct​(HashCode indexHash, Set<MapEntry<com.google.protobuf.ByteString,​com.google.protobuf.ByteString>> entries, Set<com.google.protobuf.ByteString> missingKeys)
    Creates a valid map proof.
    com.google.protobuf.ByteString get​(com.google.protobuf.ByteString key)
    If this proof is valid, returns the value corresponding to the specified key or null if there is no such key in the proof.
    Set<MapEntry<com.google.protobuf.ByteString,​com.google.protobuf.ByteString>> getEntries()
    Get all leaf entries of this proof.
    HashCode getIndexHash()
    Returns the calculated index hash of the proof.
    Set<com.google.protobuf.ByteString> getMissingKeys()
    Get all keys that were requested, but did not appear in this proof.
    MapProofStatus getProofStatus()
    Returns the status of this proof: whether it is structurally valid.
    static CheckedFlatMapProof invalid​(MapProofStatus status)
    Creates an invalid map proof.
    boolean isValid()
    Returns true if proof status is valid, false otherwise.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait