1482 |
|
|
1483 |
|
UnmodifiableEntry(Map.Entry<? extends K, ? extends V> e) {this.e = e;} |
1484 |
|
|
1485 |
< |
public K getKey() {return e.getKey();} |
1486 |
< |
public V getValue() {return e.getValue();} |
1485 |
> |
public K getKey() {return e.getKey();} |
1486 |
> |
public V getValue() {return e.getValue();} |
1487 |
|
public V setValue(V value) { |
1488 |
|
throw new UnsupportedOperationException(); |
1489 |
|
} |
1490 |
< |
public int hashCode() {return e.hashCode();} |
1490 |
> |
public int hashCode() {return e.hashCode();} |
1491 |
|
public boolean equals(Object o) { |
1492 |
|
if (!(o instanceof Map.Entry)) |
1493 |
|
return false; |
1495 |
|
return eq(e.getKey(), t.getKey()) && |
1496 |
|
eq(e.getValue(), t.getValue()); |
1497 |
|
} |
1498 |
< |
public String toString() {return e.toString();} |
1498 |
> |
public String toString() {return e.toString();} |
1499 |
|
} |
1500 |
|
} |
1501 |
|
} |
1766 |
|
{ |
1767 |
|
private static final long serialVersionUID = 8695801310862127406L; |
1768 |
|
|
1769 |
< |
final private SortedSet<E> ss; |
1769 |
> |
private final SortedSet<E> ss; |
1770 |
|
|
1771 |
|
SynchronizedSortedSet(SortedSet<E> s) { |
1772 |
|
super(s); |
3317 |
|
{ |
3318 |
|
private static final long serialVersionUID = 3193687207550431679L; |
3319 |
|
|
3320 |
< |
final private E element; |
3320 |
> |
private final E element; |
3321 |
|
|
3322 |
|
SingletonSet(E e) {element = e;} |
3323 |
|
|
3448 |
|
* @param o the element to appear repeatedly in the returned list. |
3449 |
|
* @return an immutable list consisting of <tt>n</tt> copies of the |
3450 |
|
* specified object. |
3451 |
< |
* @throws IllegalArgumentException if n < 0. |
3451 |
> |
* @throws IllegalArgumentException if {@code n < 0} |
3452 |
|
* @see List#addAll(Collection) |
3453 |
|
* @see List#addAll(int, Collection) |
3454 |
|
*/ |