Lines Matching refs:EnumMap
53 * <P>Like most collection implementations <tt>EnumMap</tt> is not
64 * = Collections.synchronizedMap(new EnumMap<EnumKey, V>(...));
79 public class EnumMap<K extends Enum<K>, V> extends AbstractMap<K, V>
115 return "java.util.EnumMap.NULL";
135 public EnumMap(Class<K> keyType) {
148 public EnumMap(EnumMap<K, ? extends V> m) {
157 * specified map is an <tt>EnumMap</tt> instance, this constructor behaves
158 * identically to {@link #EnumMap(EnumMap)}. Otherwise, the specified map
164 * <tt>EnumMap</tt> instance and contains no mappings
167 public EnumMap(Map<K, ? extends V> m) {
168 if (m instanceof EnumMap) {
169 EnumMap<K, ? extends V> em = (EnumMap<K, ? extends V>) m;
333 if (m instanceof EnumMap) {
334 EnumMap<? extends K, ? extends V> em =
335 (EnumMap<? extends K, ? extends V>)m;
401 EnumMap.this.remove(o);
405 EnumMap.this.clear();
450 EnumMap.this.clear();
492 EnumMap.this.clear();
657 if (o instanceof EnumMap)
658 return equals((EnumMap)o);
683 private boolean equals(EnumMap em) {
724 public EnumMap<K, V> clone() {
725 EnumMap<K, V> result = null;
727 result = (EnumMap<K, V>) super.clone();
757 * Save the state of the <tt>EnumMap</tt> instance to a stream (i.e.,
786 * Reconstitute the <tt>EnumMap</tt> instance from a stream (i.e.,