Class DefaultGroupReference



  • 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 Summary

      Constructors 
      Constructor Description
      DefaultGroupReference​(io.annot8.core.data.Item item, java.lang.String groupId)
      New reference either from another reference or manually created.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getGroupId​()  
      static DefaultGroupReference to​(io.annot8.core.data.Item item, io.annot8.core.annotations.Group group)
      Create a reference from a group instance.
      java.util.Optional<io.annot8.core.annotations.Group> toGroup​()  
      • Methods inherited from class io.annot8.common.implementations.references.AbstractGroupReference

        equals, hashCode, toString
      • Methods inherited from interface io.annot8.core.references.GroupReference

        toGroups
      • Methods inherited from class java.lang.Object

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

      • DefaultGroupReference

        public DefaultGroupReference​(io.annot8.core.data.Item item,
                                     java.lang.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 java.lang.String getGroupId​()
      • toGroup

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