1 |
/* Collections.java -- Utility class with methods to operate on collections |
/* Collections.java -- Utility class with methods to operate on collections |
2 |
Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc. |
Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
1294 |
} |
} |
1295 |
} |
} |
1296 |
|
|
1297 |
private static class SynchronizedCollection implements Collection, |
/** |
1298 |
|
* Package visible, so that collections such as the one for |
1299 |
|
* Hashtable.values() can specify which object to synchronize on. |
1300 |
|
*/ |
1301 |
|
static class SynchronizedCollection implements Collection, |
1302 |
Serializable |
Serializable |
1303 |
{ |
{ |
1304 |
Object sync; |
Object sync; |
1526 |
} |
} |
1527 |
} |
} |
1528 |
|
|
1529 |
private static class SynchronizedSet extends SynchronizedCollection |
/** |
1530 |
|
* Package visible, so that sets such as the one for Hashtable.keySet() |
1531 |
|
* can specify which object to synchronize on. |
1532 |
|
*/ |
1533 |
|
static class SynchronizedSet extends SynchronizedCollection |
1534 |
implements Set |
implements Set |
1535 |
{ |
{ |
1536 |
public SynchronizedSet(Object sync, Set s) |
public SynchronizedSet(Object sync, Set s) |