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>
public interface Annotatable
Object that has an annotation.
-
Method Summary
Modifier and TypeMethodDescription<A extends Annotation>
ARetrieves a piece of information that has been annotated.voidsetAnnotation(Annotation data) Annotates a piece of information to the object.
-
Method Details
-
setAnnotation
Annotates a piece of information to the object.- Parameters:
data- Information to be annotated.
-
getAnnotation
Retrieves a piece of information that has been annotated.- Returns:
- The annotation or
nullif the object has not been annotated.
-