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 java.lang.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(java.lang.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
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equals
in classjava.lang.Object
-
-