- java.lang.Object
-
- io.annot8.defaultimpl.stores.DefaultAnnotationStore
-
- All Implemented Interfaces:
io.annot8.core.stores.AnnotationStore
public class DefaultAnnotationStore extends Object implements io.annot8.core.stores.AnnotationStore
In memory implementation, backed by a HashMap, of AnnotationStore
-
-
Constructor Summary
Constructors Constructor Description DefaultAnnotationStore(String contentId)Construct a new instance of this class using DefaultAnnotation.AbstractContentBuilder as the annotation builder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(io.annot8.core.annotations.Annotation annotation)booleanequals(Object obj)Stream<io.annot8.core.annotations.Annotation>getAll()io.annot8.core.annotations.Annotation.BuildergetBuilder()Optional<io.annot8.core.annotations.Annotation>getById(String s)inthashCode()StringtoString()
-
-
-
Constructor Detail
-
DefaultAnnotationStore
public DefaultAnnotationStore(String contentId)
Construct a new instance of this class using DefaultAnnotation.AbstractContentBuilder as the annotation builder
-
-
Method Detail
-
getBuilder
public io.annot8.core.annotations.Annotation.Builder getBuilder()
- Specified by:
getBuilderin interfaceio.annot8.core.stores.AnnotationStore
-
delete
public void delete(io.annot8.core.annotations.Annotation annotation)
- Specified by:
deletein interfaceio.annot8.core.stores.AnnotationStore
-
getAll
public Stream<io.annot8.core.annotations.Annotation> getAll()
- Specified by:
getAllin interfaceio.annot8.core.stores.AnnotationStore
-
getById
public Optional<io.annot8.core.annotations.Annotation> getById(String s)
- Specified by:
getByIdin interfaceio.annot8.core.stores.AnnotationStore
-
-