Class DefaultGroupStore

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

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

      • DefaultGroupStore

        public DefaultGroupStore​(io.annot8.core.data.Item 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 Stream<io.annot8.core.annotations.Group> getAll()
        Specified by:
        getAll in interface io.annot8.core.stores.GroupStore
      • getById

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

        public int hashCode()
        Overrides:
        hashCode in class Object