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 protectedAbstractDescription()protectedAbstractDescription(SparseAnnotations... annotations)Creates a new entity, annotated with the specified annotations.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SparseAnnotationsannotations()Returns the key/value annotations.booleanequals(java.lang.Object object)inthashCode()
-
-
-
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:AnnotatedReturns the key/value annotations.- Specified by:
annotationsin interfaceAnnotated- Returns:
- key/value annotations
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equalsin classjava.lang.Object
-
-