K - key typeV - value typepublic interface Registry<K,V> extends Map<K,V>
Map read methods, this interface also
provides guaranteed/expected lookup via the forKey(Object) method.
Immutability
Registries are immutable and cannot be changed. Registry extends the
Map interface purely out of convenience: to allow easy key/value
pair access and iteration, and other conveniences provided by the Map interface, as well as for seamless use with
existing Map-based APIs. Attempting to call any of
the Map interface's mutation methods however (such as put,
remove, clear, etc) will throw an
UnsupportedOperationException.
V forKey(K key) throws IllegalArgumentException
IllegalArgumentException if there is no
associated value. If a value is not required, consider using the Map.get(Object) method instead.key - the registry key assigned to the required valueIllegalArgumentException - if there is no value assigned the specified keyMap.get(Object)Copyright © 2014–2023 jsonwebtoken.io. All rights reserved.