| Constructor and Description |
|---|
Lookup()
Create a new lookup entry.
|
Lookup(long id)
Creates a new lookup with the given ID.
|
| Modifier and Type | Method and Description |
|---|---|
int |
get(E value)
Gets a unique id for an object.
|
E |
get(int i)
Gets the object associated with the unique id.
|
E[] |
getAll()
Return an array with all registered objects.
|
long |
getId()
Gets the ID of this registry.
|
E |
getNonBlocking(int i)
Get a record from the underlying object array.
|
int |
getSize()
Returns the number of registered objects.
|
boolean |
set(E value,
int id)
Registers the object with the unique id.
|
void |
setRecordReceiver(IRegistryRecordReceiver recordReceiver)
Deprecated.
(won't be removed) This method is not supported by this implementation.
|
java.lang.String |
toString() |
public Lookup()
public Lookup(long id)
id - The ID to use for this lookuppublic long getId()
IRegistrypublic int get(E value)
IRegistrypublic E getNonBlocking(int i)
i - the index for the arraypublic E[] getAll()
IRegistrypublic int getSize()
IRegistrypublic E get(int i)
IRegistrypublic boolean set(E value, int id)
ILookup@Deprecated public void setRecordReceiver(IRegistryRecordReceiver recordReceiver)
IRegistrysetRecordReceiver in interface IRegistry<E>recordReceiver - has no special property.public java.lang.String toString()
toString in class java.lang.ObjectCopyright 2017 Kieker Project, http://kieker-monitoring.net