Package kieker.common.registry.reader
Class ReaderRegistry<E>
java.lang.Object
kieker.common.registry.reader.ReaderRegistry<E>
- Type Parameters:
E
- the type of the values in this registry
- Direct Known Subclasses:
DeserializerStringRegistry
public class ReaderRegistry<E>
extends java.lang.Object
Represents an unsynchronized registry for read-only purposes. It is used by the readers within the analysis component.
- Since:
- 1.13
- Author:
- Christian Wulf
-
Constructor Summary
Constructors Constructor Description ReaderRegistry()
Constructs an unsynchronized reader registry. -
Method Summary
-
Constructor Details
-
ReaderRegistry
public ReaderRegistry()Constructs an unsynchronized reader registry.
-
-
Method Details
-
get
Get registry entry matching the key.- Parameters:
key
- key- Returns:
- returns matching entry.
-
getKey
Reverse lookup of key based on value.- Parameters:
value
- value- Returns:
- returns first key
-
register
Add one entry to the registry.- Parameters:
key
- keyvalue
- value- Returns:
- the previous associated value for the given
key
, ornull
otherwise.
-