Interface Annotatable
-
- All Known Subinterfaces:
DiGraph.DiGraphEdge<N,E>,DiGraph.DiGraphNode<N,E>,Graph.GraphEdge<N,E>,GraphNode<N,E>,UndiGraph.UndiGraphEdge<N,E>,UndiGraph.UndiGraphNode<N,E>
- All Known Implementing Classes:
LinkedDirectedGraph.LinkedDiGraphEdge,LinkedDirectedGraph.LinkedDiGraphNode
public interface AnnotatableObject that has an annotation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <A extends Annotation>
AgetAnnotation()Retrieves a piece of information that has been annotated.voidsetAnnotation(Annotation data)Annotates a piece of information to the object.
-
-
-
Method Detail
-
setAnnotation
void setAnnotation(Annotation data)
Annotates a piece of information to the object.- Parameters:
data- Information to be annotated.
-
getAnnotation
<A extends Annotation> A getAnnotation()
Retrieves a piece of information that has been annotated.- Returns:
- The annotation or
nullif the object has not been annotated.
-
-