Package com.helger.commons.id
Interface IHasLongID
-
- 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 IHasLongID
Base interface for all objects having a long ID.- Author:
- Philip Helger
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static Comparator<IHasLongID>getComparatorID()longgetID()default LonggetIDObj()
-
-
-
Method Detail
-
getID
long getID()
- Returns:
- The simple long ID of this object.
-
getIDObj
@Nonnull default Long getIDObj()
- Returns:
- The
Longrepresentation of the contained "long" ID.
-
getComparatorID
@Nonnull static Comparator<IHasLongID> getComparatorID()
-
-