Class 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 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:
        getBuilder in interface io.annot8.core.stores.AnnotationStore
      • delete

        public void delete​(io.annot8.core.annotations.Annotation annotation)
        Specified by:
        delete in interface io.annot8.core.stores.AnnotationStore
      • getAll

        public Stream<io.annot8.core.annotations.Annotation> getAll()
        Specified by:
        getAll in interface io.annot8.core.stores.AnnotationStore
      • getById

        public Optional<io.annot8.core.annotations.Annotation> getById​(String s)
        Specified by:
        getById in interface io.annot8.core.stores.AnnotationStore
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object