Package org.onosproject.net.behaviour
Class DefaultPatchDescription
- java.lang.Object
-
- org.onosproject.net.AbstractDescription
-
- org.onosproject.net.behaviour.DefaultPatchDescription
-
- All Implemented Interfaces:
Annotated,PatchDescription,Description
public final class DefaultPatchDescription extends AbstractDescription implements PatchDescription
Default implementation of immutable patch interface description entity.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDefaultPatchDescription.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DefaultPatchDescription.Builderbuilder()Returns new builder instance.Optional<String>deviceId()Returns the identifier of the device where this patch interface is.booleanequals(Object obj)inthashCode()StringifaceName()Return the name of the patch interface.Stringpeer()Returns the name of the interface for the other side of the patch.StringtoString()-
Methods inherited from class org.onosproject.net.AbstractDescription
annotations
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.onosproject.net.Description
annotations
-
-
-
-
Method Detail
-
deviceId
public Optional<String> deviceId()
Description copied from interface:PatchDescriptionReturns the identifier of the device where this patch interface is.- Specified by:
deviceIdin interfacePatchDescription- Returns:
- device identifier; empty value if not set
-
ifaceName
public String ifaceName()
Description copied from interface:PatchDescriptionReturn the name of the patch interface.- Specified by:
ifaceNamein interfacePatchDescription- Returns:
- patch interface name
-
peer
public String peer()
Description copied from interface:PatchDescriptionReturns the name of the interface for the other side of the patch.- Specified by:
peerin interfacePatchDescription- Returns:
- peer patch interface name
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractDescription
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classAbstractDescription
-
builder
public static DefaultPatchDescription.Builder builder()
Returns new builder instance.- Returns:
- default patch description builder
-
-