Class DefaultGroupStore
- java.lang.Object
-
- io.annot8.implementations.reference.stores.DefaultGroupStore
-
- All Implemented Interfaces:
io.annot8.api.helpers.WithFilter<io.annot8.api.annotations.Group>,io.annot8.api.stores.GroupStore
public class DefaultGroupStore extends Object implements io.annot8.api.stores.GroupStore
In memory implementation, backed by a HashMap, of GroupStore
-
-
Constructor Summary
Constructors Constructor Description DefaultGroupStore(io.annot8.api.data.Item 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 voiddelete(io.annot8.api.annotations.Group group)booleanequals(Object obj)Stream<io.annot8.api.annotations.Group>getAll()io.annot8.api.annotations.Group.BuildergetBuilder()Optional<io.annot8.api.annotations.Group>getById(String s)io.annot8.api.data.ItemgetItem()inthashCode()StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getItem
public io.annot8.api.data.Item getItem()
- Specified by:
getItemin interfaceio.annot8.api.stores.GroupStore
-
getBuilder
public io.annot8.api.annotations.Group.Builder getBuilder()
- Specified by:
getBuilderin interfaceio.annot8.api.stores.GroupStore
-
delete
public void delete(io.annot8.api.annotations.Group group)
- Specified by:
deletein interfaceio.annot8.api.stores.GroupStore
-
getAll
public Stream<io.annot8.api.annotations.Group> getAll()
- Specified by:
getAllin interfaceio.annot8.api.stores.GroupStore
-
getById
public Optional<io.annot8.api.annotations.Group> getById(String s)
- Specified by:
getByIdin interfaceio.annot8.api.stores.GroupStore
-
-