Class DTOIdentifier<T>
java.lang.Object
overit.geocallapp.utilities.rs.common.DTOIdentifier<T>
- Type Parameters:
T- the type of the identifier value
Generic wrapper class for holding identifier values of any type.
Provides a simple container for ID values that can be used in DTO (Data Transfer Object) contexts.
This class encapsulates an identifier value and provides getter/setter access to it.
Provides a simple container for ID values that can be used in DTO (Data Transfer Object) contexts.
This class encapsulates an identifier value and provides getter/setter access to it.
- Since:
- 1.0
-
Constructor Summary
ConstructorsConstructorDescriptionDTOIdentifier(T id) Creates a new DTOIdentifier with the specified identifier value. -
Method Summary
-
Constructor Details
-
DTOIdentifier
Creates a new DTOIdentifier with the specified identifier value.- Parameters:
id- the identifier value to wrap
-
-
Method Details
-
getId
Gets the identifier value.- Returns:
- the identifier value of type T
-
setId
Sets the identifier value.- Parameters:
id- the new identifier value to set
-