public abstract class StructuralKey<K>
extends java.lang.Object
Coder.structuralValue(Object)
) to perform equality and hashing.Modifier and Type | Method and Description |
---|---|
static StructuralKey<?> |
empty()
Get the empty
StructuralKey . |
abstract K |
getKey()
Returns the key that this
StructuralKey was created from. |
static <K> StructuralKey<K> |
of(K key,
Coder<K> coder)
Create a new Structural Key of the provided key that can be encoded by the provided coder.
|
public abstract K getKey()
StructuralKey
was created from.public static StructuralKey<?> empty()
StructuralKey
. All instances of the empty key are considered equal.public static <K> StructuralKey<K> of(K key, Coder<K> coder)