Package org.onosproject.net
Class IpElementId
- java.lang.Object
-
- org.onosproject.net.ElementId
-
- org.onosproject.net.IpElementId
-
- All Implemented Interfaces:
NetworkResource
public final class IpElementId extends ElementId
Represent for a Element ID using ip address.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
int
hashCode()
IpAddress
ipAddress()
Returns the ip address.static IpElementId
ipElement(IpAddress ipAddress)
Create a IP Element ID.java.lang.String
toString()
-
-
-
Method Detail
-
ipElement
public static IpElementId ipElement(IpAddress ipAddress)
Create a IP Element ID.- Parameters:
ipAddress
- IP address- Returns:
- IpElementId
-
ipAddress
public IpAddress ipAddress()
Returns the ip address.- Returns:
- ipAddress
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-