Java PropertyPermission.hashCode()

Syntax

PropertyPermission.hashCode() has the following syntax.

public int hashCode()

Example

In the following code shows how to use PropertyPermission.hashCode() method.


/*  w w w.  j a  v  a  2 s .co  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.