@ Override public boolean registerIdentification ( Identifiable identifiable ) { if ( identifiable == null || identifiable . getID ( ) == null || identifiable . getID ( ) . isEmpty ( ) ) return false ; if ( registered . containsValue ( identifiable ) || registered . containsKey ( identifiable . getID ( ) ) ) { return false ; } registered . put ( identifiable . getID ( ) , identifiable ) ; return true ; }
Registers an Identifiable ID has to be unique .