Package cdc.kernel.rids
Interface RawIdentifiable
-
public interface RawIdentifiableInterface implemented by objects that have a raw identifier.Having a raw identifier means that the object has a normal identifier.
- Author:
- Damien Carbonne
-
-
Field Summary
Fields Modifier and Type Field Description static Comparator<RawIdentifiable>RAW_ID_COMPARATORComparator of RawIdentifiable based on their raw identifier.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ObjectgetId()RawIdgetRawId()static RawIdgetRawId(RawIdentifiable x)Returns the raw identifier of a raw identifiable.
-
-
-
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
xornullifxisnull.
-
-