finish extraction of abstract class
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/branches/collections_jdk5_branch@814061 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
bb91d002c2
commit
c673ab5f4e
|
@ -66,8 +66,6 @@ public class TransformedMap<J, K, U, V> extends AbstractIterableGetMapDecorator<
|
|||
/** Serialization version */
|
||||
private static final long serialVersionUID = 5966875321133456994L;
|
||||
|
||||
/** The decorated map */
|
||||
private Map<K, V> decorated;
|
||||
/** The transformer to use for the key */
|
||||
private final Transformer<? super J, ? extends K> keyTransformer;
|
||||
/** The transformer to use for the value */
|
||||
|
@ -128,7 +126,7 @@ public class TransformedMap<J, K, U, V> extends AbstractIterableGetMapDecorator<
|
|||
*/
|
||||
private void writeObject(ObjectOutputStream out) throws IOException {
|
||||
out.defaultWriteObject();
|
||||
out.writeObject(decorated);
|
||||
out.writeObject(decorated());
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -142,7 +140,7 @@ public class TransformedMap<J, K, U, V> extends AbstractIterableGetMapDecorator<
|
|||
@SuppressWarnings("unchecked")
|
||||
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
|
||||
in.defaultReadObject();
|
||||
decorated = (Map) in.readObject();
|
||||
map = (Map) in.readObject();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
@ -216,5 +214,10 @@ public class TransformedMap<J, K, U, V> extends AbstractIterableGetMapDecorator<
|
|||
decorated().putAll(transformMap(mapToCopy));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public void clear() {
|
||||
decorated().clear();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue