Class DefaultAnnotationStore

  • All Implemented Interfaces:
    io.annot8.core.stores.AnnotationStore


    public class DefaultAnnotationStore
    extends java.lang.Object
    implements io.annot8.core.stores.AnnotationStore
    In 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
      void delete​(io.annot8.core.annotations.Annotation annotation)  
      boolean equals​(java.lang.Object obj)  
      java.util.stream.Stream<io.annot8.core.annotations.Annotation> getAll​()  
      io.annot8.core.annotations.Annotation.Builder getBuilder​()  
      java.util.Optional<io.annot8.core.annotations.Annotation> getById​(java.lang.String s)  
      int hashCode​()  
      java.lang.String toString​()  
      • Methods inherited from interface io.annot8.core.stores.AnnotationStore

        copy, create, delete, deleteAll, edit, getByBounds, getByBoundsAndType, getByType
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DefaultAnnotationStore

        public DefaultAnnotationStore​(java.lang.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 java.util.stream.Stream<io.annot8.core.annotations.Annotation> getAll​()
        Specified by:
        getAll in interface io.annot8.core.stores.AnnotationStore
      • getById

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

        public java.lang.String toString​()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode​()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object