Class Grant

    • Constructor Detail

      • Grant

        public Grant​(Grantee grantee,
                     Permission permission)
        Constructs a new Grant object using the specified grantee and permission objects.
        Parameters:
        grantee - The grantee being granted a permission by this grant.
        permission - The permission being granted to the grantee by this grant.
    • Method Detail

      • getGrantee

        public Grantee getGrantee()
        Gets the grantee being granted a permission by this grant.
        Returns:
        The grantee being granted a permission by this grant.
        See Also:
        getPermission()
      • getPermission

        public Permission getPermission()
        Gets the permission being granted to the grantee by this grant.
        Returns:
        The permission being granted to the grantee by this grant.
        See Also:
        getGrantee()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object