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 of
EntryIndex
.-
Method Summary
Modifier and Type Method Description HashCode
getIndexHash()
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 Details
-
getIndexHash
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:
getIndexHash
in interfaceHashableIndex
- Throws:
java.lang.IllegalStateException
- if the index is invalid
-