Class GroupSet

    • Constructor Detail

      • GroupSet

        public GroupSet()
        Constructs an empty GroupSet
      • GroupSet

        public GroupSet​(Collection<? extends Group> groups)
        Constructs a new GroupSet with specified contents. If the given collection contains multiple objects that are identical WRT equals() method, some objects will be overwritten.
        Parameters:
        groups - A collection of groups to be contained in the set.
    • Method Detail

      • getGroupByName

        @Deprecated
        public Group getGroupByName​(String groupName)
        Deprecated.
        Use getByName()
        Returns a Group with the given name, if it is contained in this GroupSet.
        Parameters:
        groupName - Name of Group.
        Returns:
        Group if argument matched a Group in this GroupSet; null if no match.
      • getGroupById

        @Deprecated
        public Group getGroupById​(Object groupId)
        Deprecated.
        Use getById()
        Returns a Group with the given id, if it is contained in this GroupSet.
        Parameters:
        groupId - Id of the group
        Returns:
        Group if argument matched a Group in this GroupSet; null if no match.