java.util
Class PropertyPermission
java.lang.Object
|
+--java.security.Permission
|
+--java.security.BasicPermission
|
+--java.util.PropertyPermission
- All Implemented Interfaces:
- java.security.Guard, java.io.Serializable
- public final synchronized class PropertyPermission
- extends java.security.BasicPermission
Methods inherited from class java.security.Permission |
checkGuard, getName, toString |
PropertyPermission
public PropertyPermission(String,
String)
implies
public boolean implies(java.security.Permission)
- Overrides:
implies
in class java.security.BasicPermission
equals
public boolean equals(Object)
- Description copied from class:
Object
- Determines if this object is "equal" to another object.
In general, objects should be instances of the same class
with the same guts to be considered equal. For example,
the code below only prints same value since
s
and t
are different strings though
they have the same value: "hello".
String s = new String("hello");
String t = new String("hello");
if (s.equals(t)) System.out.println("same value");
if (s == t) System.out.println("same string");
- Overrides:
equals
in class java.security.BasicPermission
- Following copied from class:
java.lang.Object
- Parameters:
is
- the other Object to which this one is compared- Returns:
- true if this Object is equal to
other
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.security.BasicPermission
getActions
public String getActions()
- Overrides:
getActions
in class java.security.BasicPermission
newPermissionCollection
public java.security.PermissionCollection newPermissionCollection()
- Overrides:
newPermissionCollection
in class java.security.BasicPermission