Class DefaultGroupStore

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


    public class DefaultGroupStore
    extends java.lang.Object
    implements io.annot8.core.stores.GroupStore
    In memory implementation, backed by a HashMap, of GroupStore
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultGroupStore​(io.annot8.core.data.BaseItem item)
      Construct a new instance of this class for the provided item
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete​(io.annot8.core.annotations.Group group)  
      boolean equals​(java.lang.Object obj)  
      java.util.stream.Stream<io.annot8.core.annotations.Group> getAll​()  
      io.annot8.core.annotations.Group.Builder getBuilder​()  
      java.util.Optional<io.annot8.core.annotations.Group> getById​(java.lang.String s)  
      int hashCode​()  
      java.lang.String toString​()  
      • Methods inherited from interface io.annot8.core.stores.GroupStore

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

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

      • DefaultGroupStore

        public DefaultGroupStore​(io.annot8.core.data.BaseItem item)
        Construct a new instance of this class for the provided item
    • Method Detail

      • getBuilder

        public io.annot8.core.annotations.Group.Builder getBuilder​()
        Specified by:
        getBuilder in interface io.annot8.core.stores.GroupStore
      • delete

        public void delete​(io.annot8.core.annotations.Group group)
        Specified by:
        delete in interface io.annot8.core.stores.GroupStore
      • getAll

        public java.util.stream.Stream<io.annot8.core.annotations.Group> getAll​()
        Specified by:
        getAll in interface io.annot8.core.stores.GroupStore
      • getById

        public java.util.Optional<io.annot8.core.annotations.Group> getById​(java.lang.String s)
        Specified by:
        getById in interface io.annot8.core.stores.GroupStore
      • 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