Interface Entity
- All Superinterfaces:
Comparable<Entity>,WithId
Represents an entity.
- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault intDefault implementation of compareTo by id.booleanReturns true, if the entity is marked as deleted, otherwise falsedefault booleanReturns true, if the entity is not marked as deleted, otherwise false
-
Method Details
-
isDeleted
boolean isDeleted()Returns true, if the entity is marked as deleted, otherwise false- Returns:
- true, if the entity is deleted
- Since:
- 1.0
-
isNotDeleted
default boolean isNotDeleted()Returns true, if the entity is not marked as deleted, otherwise false- Returns:
- true, if the entity is not deleted
- Since:
- 1.9
-
compareTo
Default implementation of compareTo by id.- Specified by:
compareToin interfaceComparable<Entity>- Since:
- 1.2
-