15 |
|
import java.util.AbstractMap; |
16 |
|
import java.util.Arrays; |
17 |
|
import java.util.Collection; |
18 |
– |
import java.util.Comparator; |
18 |
|
import java.util.ConcurrentModificationException; |
19 |
|
import java.util.Enumeration; |
20 |
|
import java.util.HashMap; |
488 |
|
* |
489 |
|
* Maintaining API and serialization compatibility with previous |
490 |
|
* versions of this class introduces several oddities. Mainly: We |
491 |
< |
* leave untouched but unused constructor arguments refering to |
491 |
> |
* leave untouched but unused constructor arguments referring to |
492 |
|
* concurrencyLevel. We accept a loadFactor constructor argument, |
493 |
|
* but apply it only to initial table capacity (which is the only |
494 |
|
* time that we can guarantee to honor it.) We also declare an |
637 |
|
this.next = next; |
638 |
|
} |
639 |
|
|
640 |
< |
public final K getKey() { return key; } |
641 |
< |
public final V getValue() { return val; } |
642 |
< |
public final int hashCode() { return key.hashCode() ^ val.hashCode(); } |
643 |
< |
public final String toString(){ return key + "=" + val; } |
640 |
> |
public final K getKey() { return key; } |
641 |
> |
public final V getValue() { return val; } |
642 |
> |
public final int hashCode() { return key.hashCode() ^ val.hashCode(); } |
643 |
> |
public final String toString() { return key + "=" + val; } |
644 |
|
public final V setValue(V value) { |
645 |
|
throw new UnsupportedOperationException(); |
646 |
|
} |