1 16 package org.apache.commons.collections.keyvalue; 17 18 import java.util.Map ; 19 20 import org.apache.commons.collections.KeyValue; 21 import org.apache.commons.collections.Unmodifiable; 22 23 32 public final class UnmodifiableMapEntry extends AbstractMapEntry implements Unmodifiable { 33 34 40 public UnmodifiableMapEntry(final Object key, final Object value) { 41 super(key, value); 42 } 43 44 50 public UnmodifiableMapEntry(final KeyValue pair) { 51 super(pair.getKey(), pair.getValue()); 52 } 53 54 60 public UnmodifiableMapEntry(final Map.Entry entry) { 61 super(entry.getKey(), entry.getValue()); 62 } 63 64 71 public Object setValue(Object value) { 72 throw new UnsupportedOperationException ("setValue() is not supported"); 73 } 74 75 } 76 | Popular Tags |