com.h3c.sdn.misc.net

## Class ARPEntryDTO

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

- All Implemented Interfaces:
    ARPEntry

      public class ARPEntryDTO
      extends Object
      implements ARPEntry

  Provides an implementation of `ARPEntry`.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ARPEntryDTO(IpAddress ip, MacAddress mac, VId vid)` Constructor to create ARP entry using IP, MAC and VID.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(Object obj)`
    `int` | `hashCode()`
    `IpAddress` | `ip()` Returns the IP address of the ARP Entry.
    `MacAddress` | `mac()` Returns the MAC address of the ARP Entry.
    `String` | `toString()`
    `VId` | `vid()` Returns the VID identifier of the ARP Entry.

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

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

- - ### Constructor Detail

    - #### ARPEntryDTO

          public ARPEntryDTO(IpAddress ip,
                     MacAddress mac,
                     VId vid)

      Constructor to create ARP entry using IP, MAC and VID.
      Parameters:
        `ip` - the IP address
        `mac` - the MAC address
        `vid` - the VID

  - ### Method Detail

    - #### ip

          public IpAddress ip()

      Description copied from interface: `ARPEntry`
      Returns the IP address of the ARP Entry.
      Specified by:
        `ip` in interface `ARPEntry`
      Returns:
        the IP address

    - #### mac

          public MacAddress mac()

      Description copied from interface: `ARPEntry`
      Returns the MAC address of the ARP Entry.
      Specified by:
        `mac` in interface `ARPEntry`
      Returns:
        the MAC address

    - #### vid

          public VId vid()

      Description copied from interface: `ARPEntry`
      Returns the VID identifier of the ARP Entry.
      Specified by:
        `vid` in interface `ARPEntry`
      Returns:
        the VID identifier

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