com.h3c.api

## Interface Transportable<T,I extends Serializable>

- Type Parameters:
    `T` - type of the transfer object (DTO)
    `I` - type of the transportable's id. It should be an immutable type. It is critical this type implements equals() and hashCode() correctly.
  All Superinterfaces:
    Serializable
  All Known Subinterfaces:
    Region
  All Known Implementing Classes:
    AbstractModel, Alert, AlertTopicListener, AppLicense, AuditLogEntry, CtlAddrEntity, HostEntity, LicenseKey, LicInstallId, Model, RegionModel, SystemInformation, SystemModel

      public interface Transportable<T,I extends Serializable>
      extends Serializable

  Provides the ability for the transport objects to carry the data between application layers and tiers

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `<E extends T> Id<E,I>` | `getId()` Gets the id of this object.

- - ### Method Detail

    - #### getId

          <E extends T> Id<E,I> getId()

      Gets the id of this object.

      A type for the identified must be specified to retrieve the id because identified objects might be inheritable. For example, assume `Employee` extends from `Person` and `Person` implements `Transportable<Person, Long>`. The following code would be possible.

           Id<Person, Long> id = employee.getId();
           Id<Employee, Long> id = employee.getId();

      Returns:
        the id of this object

Copyright © 2014. All Rights Reserved.