com.h3c.util.pkt

## Class IpV6.Option

- java.lang.Object
- - com.h3c.util.pkt.IpV6.Option

- Enclosing class:
    IpV6

      public static class IpV6.Option
      extends Object

  IPv6 option data store (immutable).

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `IpV6.Option(IpType type, IpType nextHdr, byte[] bytes)` Create a new IPv6 option data store.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `byte[]` | `bytes()` Returns a copy of the option payload bytes.
    `IpType` | `nextHdr()` Returns the next header protocol type.
    `String` | `toString()`
    `IpType` | `type()` Returns this option's protocol type.

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

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

- - ### Constructor Detail

    - #### IpV6.Option

          public IpV6.Option(IpType type,
                     IpType nextHdr,
                     byte[] bytes)

      Create a new IPv6 option data store.
      Parameters:
        `type` - this option's header protocol type
        `nextHdr` - next header protocol type
        `bytes` - payload bytes

  - ### Method Detail

    - #### type

          public IpType type()

      Returns this option's protocol type.
      Returns:
        this option's protocol type

    - #### nextHdr

          public IpType nextHdr()

      Returns the next header protocol type.
      Returns:
        the next header protocol type

    - #### bytes

          public byte[] bytes()

      Returns a copy of the option payload bytes.
      Returns:
        the option payload bytes

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2014. All Rights Reserved.