Class AbstractAnnotation
- java.lang.Object
-
- io.annot8.implementations.support.annotations.AbstractAnnotation
-
- All Implemented Interfaces:
Annotation,WithId,WithProperties,WithType
public abstract class AbstractAnnotation extends Object implements Annotation
Abstract implementation of Annotation, providing correct implementations of equals, hashCode and toString.Two annotations are taken to be equal if the following properties are all equal. The actual implementation of the annotation is seen to be irrelevant and not checked.
- id
- type
- properties
- bounds
- contentName
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.annot8.api.annotations.Annotation
Annotation.Builder
-
-
Constructor Summary
Constructors Constructor Description AbstractAnnotation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)inthashCode()StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.annot8.api.annotations.Annotation
getBounds, getBounds, getContentId, sameAnnotation
-
Methods inherited from interface io.annot8.api.helpers.WithProperties
getProperties
-
-