Class DefaultAnnotationStore
- java.lang.Object
-
- io.annot8.implementations.reference.stores.DefaultAnnotationStore
-
- All Implemented Interfaces:
io.annot8.api.helpers.WithFilter<io.annot8.api.annotations.Annotation>,io.annot8.api.stores.AnnotationStore
public class DefaultAnnotationStore extends Object implements io.annot8.api.stores.AnnotationStore
In memory implementation, backed by a HashMap, of AnnotationStore
-
-
Constructor Summary
Constructors Constructor Description DefaultAnnotationStore(io.annot8.api.data.Content<?> content)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.api.annotations.Annotation annotation)booleanequals(Object obj)Stream<io.annot8.api.annotations.Annotation>getAll()io.annot8.api.annotations.Annotation.BuildergetBuilder()Optional<io.annot8.api.annotations.Annotation>getById(String s)io.annot8.api.data.Content<?>getContent()inthashCode()StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getContent
public io.annot8.api.data.Content<?> getContent()
- Specified by:
getContentin interfaceio.annot8.api.stores.AnnotationStore
-
getBuilder
public io.annot8.api.annotations.Annotation.Builder getBuilder()
- Specified by:
getBuilderin interfaceio.annot8.api.stores.AnnotationStore
-
delete
public void delete(io.annot8.api.annotations.Annotation annotation)
- Specified by:
deletein interfaceio.annot8.api.stores.AnnotationStore
-
getAll
public Stream<io.annot8.api.annotations.Annotation> getAll()
- Specified by:
getAllin interfaceio.annot8.api.stores.AnnotationStore
-
getById
public Optional<io.annot8.api.annotations.Annotation> getById(String s)
- Specified by:
getByIdin interfaceio.annot8.api.stores.AnnotationStore
-
-