Class DefaultGroupReference

  • All Implemented Interfaces:
    io.annot8.core.references.GroupReference

    public class DefaultGroupReference
    extends io.annot8.common.implementations.references.AbstractGroupReference
    A reference which will always retrieve the latest group from the appropriate group store.

    Does not hold a reference to the group.

    • Constructor Detail

      • DefaultGroupReference

        public DefaultGroupReference​(io.annot8.core.data.Item item,
                                     String groupId)
        New reference either from another reference or manually created.
    • Method Detail

      • to

        public static DefaultGroupReference to​(io.annot8.core.data.Item item,
                                               io.annot8.core.annotations.Group group)
        Create a reference from a group instance.
      • getGroupId

        public String getGroupId()
      • toGroup

        public Optional<io.annot8.core.annotations.Group> toGroup()