Package com.avoka.core.entity
Class Id
java.lang.Object
com.avoka.core.entity.Id
Provides an entity ID utility methods.
- Since:
- 17.10.0
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Id
public Id()
-
-
Method Details
-
same
Return true if both entities are not null and have the same id.- Parameters:
e1
- the first entity to teste2
- the second entity to test- Returns:
- true if both entities are not null and have the same id
- Throws:
IllegalArgumentException
- if different classes are tested for equality
-
contains
Return true if the list of entities contains the specified entity based on matching id values.- Parameters:
entityList
- list of entitiesentity
- the entity to test- Returns:
- true if the list of entities contains the specified entity based on matching id values
-