- java.lang.Object
-
- io.annot8.defaultimpl.stores.DefaultAnnotationStore
-
- All Implemented Interfaces:
io.annot8.core.stores.AnnotationStore
public class DefaultAnnotationStore extends java.lang.Object implements io.annot8.core.stores.AnnotationStoreIn memory implementation, backed by a HashMap, of AnnotationStore
-
-
Constructor Summary
Constructors Constructor Description DefaultAnnotationStore(java.lang.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(java.lang.Object obj)java.util.stream.Stream<io.annot8.core.annotations.Annotation>getAll()io.annot8.core.annotations.Annotation.BuildergetBuilder()java.util.Optional<io.annot8.core.annotations.Annotation>getById(java.lang.String s)inthashCode()java.lang.StringtoString()
-
-
-
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 java.util.stream.Stream<io.annot8.core.annotations.Annotation> getAll()
- Specified by:
getAllin interfaceio.annot8.core.stores.AnnotationStore
-
getById
public java.util.Optional<io.annot8.core.annotations.Annotation> getById(java.lang.String s)
- Specified by:
getByIdin interfaceio.annot8.core.stores.AnnotationStore
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-