diff --git a/src/main/java/org/apache/commons/collections/splitmap/AbstractIterableGetMapDecorator.java b/src/main/java/org/apache/commons/collections/splitmap/AbstractIterableGetMapDecorator.java index 15092f01e..ba12e6ef8 100644 --- a/src/main/java/org/apache/commons/collections/splitmap/AbstractIterableGetMapDecorator.java +++ b/src/main/java/org/apache/commons/collections/splitmap/AbstractIterableGetMapDecorator.java @@ -60,65 +60,38 @@ public class AbstractIterableGetMapDecorator implements IterableGet return map; } - /** - * {@inheritDoc} - */ public boolean containsKey(final Object key) { return decorated().containsKey(key); } - /** - * {@inheritDoc} - */ public boolean containsValue(final Object value) { return decorated().containsValue(value); } - /** - * {@inheritDoc} - */ public Set> entrySet() { return decorated().entrySet(); } - /** - * {@inheritDoc} - */ public V get(final Object key) { return decorated().get(key); } - /** - * {@inheritDoc} - */ public V remove(final Object key) { return decorated().remove(key); } - /** - * {@inheritDoc} - */ public boolean isEmpty() { return decorated().isEmpty(); } - /** - * {@inheritDoc} - */ public Set keySet() { return decorated().keySet(); } - /** - * {@inheritDoc} - */ public int size() { return decorated().size(); } - /** - * {@inheritDoc} - */ public Collection values() { return decorated().values(); } @@ -131,9 +104,6 @@ public class AbstractIterableGetMapDecorator implements IterableGet return new EntrySetToMapIteratorAdapter(entrySet()); } - /** - * {@inheritDoc} - */ @Override public boolean equals(final Object object) { if (object == this) { @@ -142,17 +112,11 @@ public class AbstractIterableGetMapDecorator implements IterableGet return decorated().equals(object); } - /** - * {@inheritDoc} - */ @Override public int hashCode() { return decorated().hashCode(); } - /** - * {@inheritDoc} - */ @Override public String toString() { return decorated().toString(); diff --git a/src/main/java/org/apache/commons/collections/splitmap/TransformedMap.java b/src/main/java/org/apache/commons/collections/splitmap/TransformedMap.java index 982791296..4b87aeb34 100644 --- a/src/main/java/org/apache/commons/collections/splitmap/TransformedMap.java +++ b/src/main/java/org/apache/commons/collections/splitmap/TransformedMap.java @@ -75,11 +75,16 @@ public class TransformedMap extends AbstractIterableGetMapDecorator< * If there are any elements already in the map being decorated, they are * NOT transformed. * + * @param the input key type + * @param the output key type + * @param the input value type + * @param the output value type * @param map the map to decorate, must not be null * @param keyTransformer the transformer to use for key conversion, null - * means no transformation + * means no transformation * @param valueTransformer the transformer to use for value conversion, null - * means no transformation + * means no transformation + * @return a new transformed map * @throws IllegalArgumentException if map is null */ public static TransformedMap transformingMap(final Map map, @@ -198,23 +203,14 @@ public class TransformedMap extends AbstractIterableGetMapDecorator< } //----------------------------------------------------------------------- - /** - * {@inheritDoc} - */ public V put(final J key, final U value) { return decorated().put(transformKey(key), transformValue(value)); } - /** - * {@inheritDoc} - */ public void putAll(final Map mapToCopy) { decorated().putAll(transformMap(mapToCopy)); } - /** - * {@inheritDoc} - */ public void clear() { decorated().clear(); }