T
- the type of the key that will be suppliedpublic interface KeySupplier<T>
Interface for anything that can get supply a Key of type T given a keyId
Modifier and Type | Method and Description |
---|---|
default com.google.common.base.Optional<T> |
getKey(String keyId)
Deprecated.
use supplyKey instead
|
Optional<T> |
supplyKey(String keyId)
Try to get a key for the given KeyId
|
@Nonnull Optional<T> supplyKey(@Nonnull String keyId)
Try to get a key for the given KeyId
keyId
- the identifier of the key to try to supply@Deprecated @Nonnull default com.google.common.base.Optional<T> getKey(@Nonnull String keyId)
Try to get a key for the given KeyId
keyId
- the identifier of the key to try to supplyCopyright © 2016–2022. All rights reserved.