Package org.onosproject.net
Class AbstractDescription
- java.lang.Object
-
- org.onosproject.net.AbstractDescription
-
- All Implemented Interfaces:
Annotated
- Direct Known Subclasses:
DefaultDeviceDescription
,DefaultGraphDescription
,DefaultHostDescription
,DefaultLinkDescription
,DefaultMirroringDescription
,DefaultPatchDescription
,DefaultPortDescription
,DefaultQosDescription
,DefaultQueueDescription
,DefaultTunnelDescription
public abstract class AbstractDescription extends Object implements Annotated
Base implementation of an annotated model description.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractDescription()
protected
AbstractDescription(SparseAnnotations... annotations)
Creates a new entity, annotated with the specified annotations.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SparseAnnotations
annotations()
Returns the key/value annotations.boolean
equals(Object object)
int
hashCode()
-
-
-
Constructor Detail
-
AbstractDescription
protected AbstractDescription()
-
AbstractDescription
protected AbstractDescription(SparseAnnotations... annotations)
Creates a new entity, annotated with the specified annotations.- Parameters:
annotations
- optional key/value annotations map
-
-
Method Detail
-
annotations
public SparseAnnotations annotations()
Description copied from interface:Annotated
Returns the key/value annotations.- Specified by:
annotations
in interfaceAnnotated
- Returns:
- key/value annotations
-
-