1 |
|
/* |
2 |
|
* Written by Doug Lea with assistance from members of JCP JSR-166 |
3 |
|
* Expert Group and released to the public domain, as explained at |
4 |
< |
* http://creativecommons.org/licenses/publicdomain |
4 |
> |
* http://creativecommons.org/publicdomain/zero/1.0/ |
5 |
|
*/ |
6 |
|
|
7 |
|
package jsr166x; |
253 |
|
Collection c = (Collection) o; |
254 |
|
try { |
255 |
|
return containsAll(c) && c.containsAll(this); |
256 |
< |
} catch (ClassCastException unused) { |
256 |
> |
} catch (ClassCastException unused) { |
257 |
|
return false; |
258 |
|
} catch (NullPointerException unused) { |
259 |
|
return false; |
471 |
|
* in {@link IllegalArgumentException}. Instances of this class are |
472 |
|
* constructed only using the <tt>subSet</tt>, <tt>headSet</tt>, and |
473 |
|
* <tt>tailSet</tt> methods of their underlying sets. |
474 |
– |
* |
474 |
|
*/ |
475 |
|
static class ConcurrentSkipListSubSet<E> |
476 |
|
extends AbstractSet<E> |