com.h3c.api

## Class Id<T,I extends Serializable>

- java.lang.Object
- - com.h3c.api.Id<T,I>

- Type Parameters:
    `T` - type of the object the identifier identifies.
    `I` - type of the identifier value. It should be an immutable type. It is critical this type implements equals() and hashCode() correctly.
  All Implemented Interfaces:
    Serializable

      public final class Id<T,I extends Serializable>
      extends Object
      implements Serializable

  Identifier.
  See Also:
    Serialized Form

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(Object obj)`
    `I` | `getValue()` Gets the internal representation.
    `int` | `hashCode()`
    `String` | `toString()`
    `static <T,I extends Serializable> Id<T,I>` | `valueOf(I value)` Creates an identifier with the given value.

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Method Detail

    - #### valueOf

          public static <T,I extends Serializable> Id<T,I> valueOf(I value)

      Creates an identifier with the given value.
      Parameters:
        `value` - value.
      Returns:
        an identifier.

    - #### getValue

          public I getValue()

      Gets the internal representation.
      Returns:
        internal representation.

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### equals

          public boolean equals(Object obj)

      Overrides:
        `equals` in class `Object`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2014. All Rights Reserved.