Package io.jmix.core
Class Id<T>
java.lang.Object
io.jmix.core.Id<T>
- Type Parameters:
T
- entity type
- All Implemented Interfaces:
Serializable
Convenient class for methods that receive Id of an entity as a parameter.
- See Also:
-
Method Summary
-
Method Details
-
getValue
- Returns:
- value of entity id
-
getEntityClass
- Returns:
- class of entity
-
of
- Type Parameters:
T
- entity type- Parameters:
entity
- entity instance- Returns:
- Id of the passed entity
-
ofNullable
- Type Parameters:
T
- entity type- Parameters:
entity
- entity instance, can be null- Returns:
- Id of the passed entity or null
-
of
- Type Parameters:
T
- entity type- Parameters:
id
- entity identityClass
- entity class- Returns:
- Id of the passed entity
-
equals
-
hashCode
public int hashCode() -
toString
-