public interface Annotatable
Modifier and Type | Method and Description |
---|---|
<A extends Annotation> |
getAnnotation()
Retrieves a piece of information that has been annotated.
|
void |
setAnnotation(Annotation data)
Annotates a piece of information to the object.
|
void setAnnotation(Annotation data)
data
- Information to be annotated.<A extends Annotation> A getAnnotation()
null
if the object has not
been annotated.Copyright © 2009-2018 Google. All Rights Reserved.