public interface Keyable
Types implementing this interface define a set of valid keys. Typically, these keys are serialized to or extracted from some serialized object.
|Modifier and Type||Method and Description|
Returns the set of keys this object defines or accepts, serialized to the provided form.
<T> Stream<T> keys(DynamicOps<T> ops)
T- The type of the serialized form.
DynamicOpsinstance defining the serialized form.
Keyablethat defines the keys supplied by the argument.
The supplier must return a fresh stream on each invocation. As well, care should be taken that the
source backing the returned stream is not modified or otherwise invalidated, because the returned
Keyable does not store a local copy of the keys. The caller is responsible for making
a defensive copy of the backing source, if one is required.
keys- A supplier of key streams. A fresh stream should be returned on each invocation.
Keyablefor the given keys.