Class DTOIdentifier<T>

java.lang.Object
overit.geocallapp.utilities.rs.common.DTOIdentifier<T>
Type Parameters:
T - the type of the identifier value

public class DTOIdentifier<T> extends Object
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.
Since:
1.0
  • Constructor Details

    • DTOIdentifier

      public DTOIdentifier(T id)
      Creates a new DTOIdentifier with the specified identifier value.
      Parameters:
      id - the identifier value to wrap
  • Method Details

    • getId

      public T getId()
      Gets the identifier value.
      Returns:
      the identifier value of type T
    • setId

      public void setId(T id)
      Sets the identifier value.
      Parameters:
      id - the new identifier value to set