Interface ProofEntryIndex<T>
-
- Type Parameters:
T- the type of an element in this entry
- All Superinterfaces:
EntryIndex<T>,HashableIndex,StorageIndex
- All Known Implementing Classes:
ProofEntryIndexProxy
public interface ProofEntryIndex<T> extends EntryIndex<T>, HashableIndex
A proof entry is a hashable variant ofEntryIndex.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.exonum.binding.common.hash.HashCodegetIndexHash()Returns the index hash which represents the complete state of this entry.-
Methods inherited from interface com.exonum.binding.core.storage.indices.EntryIndex
get, isPresent, orElse, remove, set, toOptional
-
Methods inherited from interface com.exonum.binding.core.storage.indices.StorageIndex
getAddress, getName
-
-
-
-
Method Detail
-
getIndexHash
com.exonum.binding.common.hash.HashCode getIndexHash()
Returns the index hash which represents the complete state of this entry. Any modifications to this entry affect the index hash.The entry index hash is computed as SHA-256 of the entry binary representation, or a hash of zeroes if the entry is not set.
- Specified by:
getIndexHashin interfaceHashableIndex- Throws:
IllegalStateException- if the index is invalid
-
-