Package org.onosproject.net
Class AbstractAnnotated
- java.lang.Object
-
- org.onosproject.net.AbstractAnnotated
-
- All Implemented Interfaces:
Annotated
- Direct Known Subclasses:
AbstractModel
,DefaultMeter
,DefaultMeterRequest
,DefaultPort
,DefaultPortStatistics
,DefaultRegion
,DeviceKey
public abstract class AbstractAnnotated extends Object implements Annotated
Base abstraction of an annotated entity.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractAnnotated()
protected
AbstractAnnotated(Annotations... annotations)
Creates a new entity, annotated with the specified annotations.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Annotations
annotations()
Returns the key/value annotations.
-
-
-
Constructor Detail
-
AbstractAnnotated
protected AbstractAnnotated()
-
AbstractAnnotated
protected AbstractAnnotated(Annotations... annotations)
Creates a new entity, annotated with the specified annotations.- Parameters:
annotations
- optional key/value annotations map
-
-
Method Detail
-
annotations
public Annotations annotations()
Description copied from interface:Annotated
Returns the key/value annotations.- Specified by:
annotations
in interfaceAnnotated
- Returns:
- key/value annotations
-
-