1 |
/* Arrays.java -- Utility class with methods to operate on arrays |
/* Arrays.java -- Utility class with methods to operate on arrays |
2 |
Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc. |
Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
2430 |
{ |
{ |
2431 |
int size = a.length; |
int size = a.length; |
2432 |
for (int i = 0; i < size; i++) |
for (int i = 0; i < size; i++) |
2433 |
if (equals(o, a[i])) |
if (this.equals(o, a[i])) |
2434 |
return i; |
return i; |
2435 |
return -1; |
return -1; |
2436 |
} |
} |
2439 |
{ |
{ |
2440 |
int i = a.length; |
int i = a.length; |
2441 |
while (--i >= 0) |
while (--i >= 0) |
2442 |
if (equals(o, a[i])) |
if (this.equals(o, a[i])) |
2443 |
return i; |
return i; |
2444 |
return -1; |
return -1; |
2445 |
} |
} |