1 |
/* SocketPermission.java -- Class modeling permissions for socket operations |
/* SocketPermission.java -- Class modeling permissions for socket operations |
2 |
Copyright (C) 1998, 2000, 2001 Free Software Foundation, Inc. |
Copyright (C) 1998, 2000, 2001, 2002 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
166 |
public int hashCode() |
public int hashCode() |
167 |
{ |
{ |
168 |
int hash = 100; |
int hash = 100; |
169 |
|
if (hostport != null) |
170 |
// FIXME: Get a real hash function |
hash += hostport.hashCode(); |
171 |
for (int i = 0; i < hostport.length(); i++) |
if (actions != null) |
172 |
hash = hash + (int) hostport.charAt(i) * 7; |
hash += actions.hashCode(); |
173 |
|
return hash; |
|
return (hash); |
|
174 |
} |
} |
175 |
|
|
176 |
/** |
/** |