com.h3c.util.pkt

## Class DhcpOptionV6

- java.lang.Object
- - com.h3c.util.pkt.DhcpOptionV6

-     public class DhcpOptionV6
      extends Object

  DHCPv6 option data store (immutable).

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `DhcpOptionV6.Type` Option types.

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `DhcpOptionV6(DhcpOptionV6.Type type)` Constructor that takes an option type.
    `DhcpOptionV6(DhcpOptionV6.Type type, byte[] bytes)` Constructor that takes an option type and payload.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `byte[]` | `bytes()` Returns a copy of the byte array.
    `String` | `toString()`
    `DhcpOptionV6.Type` | `type()` Returns the option type.

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

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

- - ### Constructor Detail

    - #### DhcpOptionV6

          public DhcpOptionV6(DhcpOptionV6.Type type)

      Constructor that takes an option type.
      Parameters:
        `type` - option type

    - #### DhcpOptionV6

          public DhcpOptionV6(DhcpOptionV6.Type type,
                      byte[] bytes)

      Constructor that takes an option type and payload.
      Parameters:
        `type` - option type
        `bytes` - payload bytes

  - ### Method Detail

    - #### type

          public DhcpOptionV6.Type type()

      Returns the option type.
      Returns:
        the option type

    - #### bytes

          public byte[] bytes()

      Returns a copy of the byte array.
      Returns:
        the byte array or null

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2014. All Rights Reserved.