-
@Deprecated(since="9", forRemoval=true) public interface Permission
Deprecated, for removal: This API element is subject to removal in a future version.This class is deprecated and subject to removal in a future version of Java SE. It has been replaced byjava.security.Policy
and related classes since 1.2.此接口表示权限,例如用于授予对资源的特定类型访问权限的权限。- 从以下版本开始:
- 1.1
-
-
方法详细信息
-
equals
boolean equals(Object another)
Deprecated, for removal: This API element is subject to removal in a future version.如果传递的对象与此接口中表示的权限匹配,则返回true。- 重写:
-
equals
类Object
- 参数
-
another
- 要与之比较的Permission对象。 - 结果
- 如果Permission对象相等则返回true,否则返回false
- 另请参见:
-
Object.hashCode()
,HashMap
-
-