Interface IHasID<IDTYPE>

Type Parameters:
IDTYPE - The type of the provided ID.
All Known Subinterfaces:
IErrorLevel, ILicense, ITypedObject<IDTYPE>
All Known Implementing Classes:
CustomLicense, ECountry, EErrorLevel, ELicense, EMimeContentType, ErrorLevel, ErrorTextProvider.EField, ETriState, EWatchDirAction, TypedObject
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface IHasID<IDTYPE>
Base interface for all objects having an ID.
Author:
Philip Helger
  • Method Details

    • getID

      IDTYPE getID()
      Get the unique ID of this object. If the type is String than the returned value must match an XML NMToken expression (so e.g. no ':' in the ID)!
      Returns:
      The ID of this object. May not be null.
    • getComparatorID

      @Nonnull static <T extends Comparable<? super T>> Comparator<IHasID<T>> getComparatorID()