Interface RawIdentifiable


  • public interface RawIdentifiable
    Interface implemented by objects that have a raw identifier.

    Having a raw identifier means that the object has a normal identifier.

    Author:
    Damien Carbonne
    • Field Detail

      • RAW_ID_COMPARATOR

        static final Comparator<RawIdentifiable> RAW_ID_COMPARATOR
        Comparator of RawIdentifiable based on their raw identifier.
    • Method Detail

      • getRawId

        RawId getRawId()
        Returns:
        The object raw identifier.
      • getId

        default Object getId()
        Returns:
        The object identifier.
        Note: This should be overridden with a more precise type when possible.
      • getRawId

        static RawId getRawId​(RawIdentifiable x)
        Returns the raw identifier of a raw identifiable.
        Parameters:
        x - the raw identifiable.
        Returns:
        The raw identifier of x or null if x is null.