Kieker 1.11

kieker.common.util.registry.newversion
Class Registry<T>

java.lang.Object
  extended by kieker.common.util.registry.newversion.Registry<T>
Type Parameters:
T - the type of the elements
All Implemented Interfaces:
IRegistry<T>

public final class Registry<T>
extends java.lang.Object
implements IRegistry<T>

Since:
1.11
Author:
Christian Wulf

Constructor Summary
Registry()
           
 
Method Summary
 void addIfAbsent(T element)
          Registers the passed element if it has not yet been registered
 int get(T element)
           
 int getSize()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Registry

public Registry()
Method Detail

addIfAbsent

public void addIfAbsent(T element)
Description copied from interface: IRegistry
Registers the passed element if it has not yet been registered

Specified by:
addIfAbsent in interface IRegistry<T>

get

public final int get(T element)
Specified by:
get in interface IRegistry<T>
Returns:
the registered unique identifier for the passed element

getSize

public int getSize()
Specified by:
getSize in interface IRegistry<T>
Returns:
the current number of registered elements

Kieker 1.11

Copyright 2015 Kieker Project, http://kieker-monitoring.net