Class UserSet<T extends User>

    • Constructor Detail

      • UserSet

        public UserSet()
        Constructs an empty UserSet
      • UserSet

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

      • getUserByName

        @Deprecated
        public User getUserByName​(String userName)
        Deprecated.
        use getByName()
        Returns a User with the given name, if it is contained in this UserSet.
        Parameters:
        userName - Name of User.
        Returns:
        User if argument matched a User in this UserSet; null if no match.
      • getUserById

        @Deprecated
        public User getUserById​(Object userId)
        Deprecated.
        use getById()
        Returns a User with the given id, if it is contained in this UserSet.
        Parameters:
        userId - id of the User.
        Returns:
        User if argument matched a User in this UserSet; null if no match.