com.h3c.util

## Class Property<I,E>

- java.lang.Object
- - com.h3c.util.Property<I,E>

- Type Parameters:
    `I` - Type for the property identity
    `E` - Type for the property's value
  All Implemented Interfaces:
    Serializable

      public final class Property<I,E>
      extends Object
      implements Serializable

  Property.
  See Also:
    Serialized Form

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(Object obj)`
    `I` | `getIdentity()` Gets the property identity.
    `E` | `getValue()` Gets the property value.
    `int` | `hashCode()`
    `String` | `toString()`
    `static <I,E> Property<I,E>` | `valueOf(I identity, E value)` Creates a property.

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

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

- - ### Method Detail

    - #### valueOf

          public static <I,E> Property<I,E> valueOf(I identity,
                                    E value)

      Creates a property.
      Parameters:
        `identity` - property identity
        `value` - property's value
      Returns:
        a property

    - #### getIdentity

          public I getIdentity()

      Gets the property identity.
      Returns:
        The property identity

    - #### getValue

          public E getValue()

      Gets the property value.
      Returns:
        The property value

    - #### 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.