Package | Description |
---|---|
com.exonum.binding.common.hash |
Hash functions and related structures.
|
com.exonum.binding.common.proofs | |
com.exonum.binding.common.proofs.list |
Modifier and Type | Class and Description |
---|---|
static class |
Funnels.HashCodeFunnel
HashCode funnel.
|
Modifier and Type | Method and Description |
---|---|
static Funnel<byte[]> |
Funnels.byteArrayFunnel()
Returns a funnel that extracts the bytes from a
byte array. |
static Funnel<HashCode> |
Funnels.hashCodeFunnel()
Returns a funnel for hashcode.
|
static Funnel<java.lang.Integer> |
Funnels.integerFunnel()
Returns a funnel for integers.
|
static Funnel<java.lang.Long> |
Funnels.longFunnel()
Returns a funnel for longs.
|
static <E> Funnel<java.lang.Iterable<? extends E>> |
Funnels.sequentialFunnel(Funnel<E> elementFunnel)
Returns a funnel that processes an
Iterable by funneling its elements in iteration
order with the specified funnel. |
static Funnel<java.lang.CharSequence> |
Funnels.stringFunnel(java.nio.charset.Charset charset)
Returns a funnel that encodes the characters of a
CharSequence with the specified
Charset . |
static Funnel<java.lang.CharSequence> |
Funnels.unencodedCharsFunnel()
Returns a funnel that extracts the characters from a
CharSequence , a character at a
time, without performing any encoding. |
Modifier and Type | Method and Description |
---|---|
<T> HashCode |
HashFunction.hashObject(T instance,
Funnel<? super T> funnel)
Shortcut for
newHasher().putObject(instance, funnel).hash() . |
<T> Hasher |
Hasher.putObject(T instance,
Funnel<? super T> funnel)
A simple convenience for
funnel.funnel(object, this) . |
static <E> Funnel<java.lang.Iterable<? extends E>> |
Funnels.sequentialFunnel(Funnel<E> elementFunnel)
Returns a funnel that processes an
Iterable by funneling its elements in iteration
order with the specified funnel. |
Modifier and Type | Class and Description |
---|---|
class |
DbKeyFunnel
A funnel for a database key.
|
Modifier and Type | Method and Description |
---|---|
static Funnel<DbKey> |
DbKeyFunnel.dbKeyFunnel() |
Modifier and Type | Method and Description |
---|---|
static Funnel<ListProofElement> |
ListProofElement.funnel() |
Copyright © 2018 Exonum. All rights reserved.