com.h3c.util.type

## Class AbstractValueType<E extends Serializable>

- java.lang.Object
- - com.h3c.util.type.AbstractValueType<E>

- Type Parameters:
    `E` - type of the internal representation of the value type.
  All Implemented Interfaces:
    Serializable
  Direct Known Subclasses:
    ColumnName, ThreadId

      public abstract class AbstractValueType<E extends Serializable>
      extends Object
      implements Serializable

  Abstract value type that hides the internal representation, for example the internal representation of an IpAddress could be a String or bytes.

  This class is immutable and so should subclasses.

  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `protected` | `AbstractValueType(E value)` Creates a new value type.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(Object obj)`
    `E` | `getValue()` Gets the internal representation.
    `int` | `hashCode()`
    `String` | `toString()`

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

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

- - ### Constructor Detail

    - #### AbstractValueType

          protected AbstractValueType(E value)

      Creates a new value type.
      Parameters:
        `value` - value.

  - ### Method Detail

    - #### getValue

          public E 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.