com.h3c.util.snmp.command

## Class Command<I>

- java.lang.Object
- - com.h3c.util.snmp.command.Command<I>

- Type Parameters:
    `I` - Type of the command's identity.
  Direct Known Subclasses:
    ReadCommand

      public class Command<I>
      extends Object

  Command.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Command(I identity)` Creates a new command.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(Object obj)`
    `I` | `getIdentity()` Gets the command identity.
    `int` | `hashCode()`
    `String` | `toString()`

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

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

- - ### Constructor Detail

    - #### Command

          public Command(I identity)
                  throws NullPointerException

      Creates a new command.
      Parameters:
        `identity` - Command's identity.
      Throws:
        `NullPointerException` - If identity is null.

  - ### Method Detail

    - #### getIdentity

          public I getIdentity()

      Gets the command identity.
      Returns:
        the command identity.

    - #### equals

          public boolean equals(Object obj)

      Overrides:
        `equals` in class `Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2014. All Rights Reserved.