All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.intellimate.izou.identification.IdentificationManagerM Maven / Gradle / Ivy

There is a newer version: 1.15.8
Show newest version
package org.intellimate.izou.identification;

import java.util.Optional;

/**
 * @author Leander Kurscheidt
 * @version 1.0
 */
public interface IdentificationManagerM {
    /**
     * If you have registered with an Identifiable interface, you can receive Identification Instances with this method.
     * @param identifiable the registered Identifiable
     * @return an Identification Instance or null if not registered
     */
    Optional getIdentification(Identifiable identifiable);

    /**
     * If a class has registered with an Identifiable interface you can receive an Identification Instance describing
     * the class by providing his ID.
     * @param id the ID of the registered Identifiable
     * @return an Identification Instance or null if not registered
     */
    Optional getIdentification(String id);

    /**
     * Registers an Identifiable, ID has to be unique.
     * @param identifiable the Identifiable to register
     * @return true if registered/already registered or false if the ID is already existing
     */
    boolean registerIdentification(Identifiable identifiable);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy