home *** CD-ROM | disk | FTP | other *** search
- package java.util;
-
- class Collections$CheckedMap$CheckedEntrySet$CheckedEntry<K, V> implements Map.Entry<K, V> {
- // $FF: renamed from: e java.util.Map.Entry
- private Map.Entry<K, V> field_0;
- private Class<V> valueType;
-
- Collections$CheckedMap$CheckedEntrySet$CheckedEntry(Map.Entry<K, V> var1, Class<V> var2) {
- this.field_0 = var1;
- this.valueType = var2;
- }
-
- public K getKey() {
- return (K)this.field_0.getKey();
- }
-
- public V getValue() {
- return (V)this.field_0.getValue();
- }
-
- public int hashCode() {
- return this.field_0.hashCode();
- }
-
- public String toString() {
- return this.field_0.toString();
- }
-
- public V setValue(V var1) {
- if (!this.valueType.isInstance(var1)) {
- throw new ClassCastException("Attempt to insert " + var1.getClass() + " value into collection with value type " + this.valueType);
- } else {
- return (V)this.field_0.setValue(var1);
- }
- }
-
- public boolean equals(Object var1) {
- if (!(var1 instanceof Map.Entry)) {
- return false;
- } else {
- Map.Entry var2 = (Map.Entry)var1;
- return Collections.access$000(this.field_0.getKey(), var2.getKey()) && Collections.access$000(this.field_0.getValue(), var2.getValue());
- }
- }
- }
-