home *** CD-ROM | disk | FTP | other *** search
- package java.util;
-
- import java.io.Serializable;
-
- public class AbstractMap$SimpleImmutableEntry<K, V> implements Map.Entry<K, V>, Serializable {
- private static final long serialVersionUID = 7138329143949025153L;
- private final K key;
- private final V value;
-
- public AbstractMap$SimpleImmutableEntry(K var1, V var2) {
- this.key = var1;
- this.value = var2;
- }
-
- public AbstractMap$SimpleImmutableEntry(Map.Entry<? extends K, ? extends V> var1) {
- this.key = (K)var1.getKey();
- this.value = (V)var1.getValue();
- }
-
- public K getKey() {
- return this.key;
- }
-
- public V getValue() {
- return this.value;
- }
-
- public V setValue(V var1) {
- throw new UnsupportedOperationException();
- }
-
- public boolean equals(Object var1) {
- if (!(var1 instanceof Map.Entry)) {
- return false;
- } else {
- Map.Entry var2 = (Map.Entry)var1;
- return AbstractMap.access$000(this.key, var2.getKey()) && AbstractMap.access$000(this.value, var2.getValue());
- }
- }
-
- public int hashCode() {
- return (this.key == null ? 0 : this.key.hashCode()) ^ (this.value == null ? 0 : this.value.hashCode());
- }
-
- public String toString() {
- return this.key + "=" + this.value;
- }
- }
-