PropertyPermission.hashCode() has the following syntax.
public int hashCode()
In the following code shows how to use PropertyPermission.hashCode() method.
// w ww . ja va2 s . c o m import java.util.PropertyPermission; public class Main { public static void main(String[] args) { System.out.println(new PropertyPermission("java.home.usr", "read") .hashCode()); } }
The code above generates the following result.