com.h3c.sdn.misc.net

## Class LinkUpdateDTO

- java.lang.Object
- - com.h3c.sdn.misc.net.LinkUpdateDTO

- All Implemented Interfaces:
    LinkUpdate

      public class LinkUpdateDTO
      extends Object
      implements LinkUpdate

  Provides an implementation of `LinkUpdate`.

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from interface com.h3c.sdn.common.LinkUpdate

      `LinkUpdate.Type`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `LinkUpdateDTO(Link link, LinkUpdate.Type operation)` Creates a DTO representing an operation applied to a link.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Link` | `link()` Returns the link which was changed.
    `LinkUpdate.Type` | `operation()` Returns the type of the operation associated with the given LD update operation.
    `String` | `toString()`

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

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

- - ### Constructor Detail

    - #### LinkUpdateDTO

          public LinkUpdateDTO(Link link,
                       LinkUpdate.Type operation)

      Creates a DTO representing an operation applied to a link.
      Parameters:
        `link` - the link which was updated
        `operation` - the operation associated with the given LD update operation
      Throws:
        `NullPointerException` - if either parameter is null

  - ### Method Detail

    - #### link

          public Link link()

      Description copied from interface: `LinkUpdate`
      Returns the link which was changed.
      Specified by:
        `link` in interface `LinkUpdate`
      Returns:
        the updated link

    - #### operation

          public LinkUpdate.Type operation()

      Description copied from interface: `LinkUpdate`
      Returns the type of the operation associated with the given LD update operation.
      Specified by:
        `operation` in interface `LinkUpdate`
      Returns:
        the type of update, i.e. ADD_OR_UPDATE, REMOVE or SWITCH_UPDATED

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2014. All Rights Reserved.