public final class IdentificationManager extends Object implements IdentificationManagerM
Modifier and Type | Method and Description |
---|---|
Optional<Identification> |
getIdentification(Identifiable identifiable)
If you have registered with an Identifiable interface, you can receive Identification Instances with this method.
|
Optional<Identification> |
getIdentification(String id)
If a class has registered with an Identifiable interface you can receive an Identification Instance describing
the class by providing his ID.
|
static IdentificationManagerM |
getInstance() |
boolean |
registerIdentification(Identifiable identifiable)
Registers an Identifiable, ID has to be unique.
|
public static IdentificationManagerM getInstance()
public Optional<Identification> getIdentification(Identifiable identifiable)
getIdentification
in interface IdentificationManagerM
identifiable
- the registered Identifiablepublic Optional<Identification> getIdentification(String id)
getIdentification
in interface IdentificationManagerM
id
- the ID of the registered Identifiablepublic boolean registerIdentification(Identifiable identifiable)
registerIdentification
in interface IdentificationManagerM
identifiable
- the Identifiable to registerCopyright © 2016. All rights reserved.