Complete javadoc, remove {@inheritDoc} tags as suggested on the ml.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1436833 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
38e3a7435f
commit
c683446d5b
|
@ -60,65 +60,38 @@ public class AbstractIterableGetMapDecorator<K, V> implements IterableGet<K, V>
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritDoc}
|
|
||||||
*/
|
|
||||||
public boolean containsKey(final Object key) {
|
public boolean containsKey(final Object key) {
|
||||||
return decorated().containsKey(key);
|
return decorated().containsKey(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritDoc}
|
|
||||||
*/
|
|
||||||
public boolean containsValue(final Object value) {
|
public boolean containsValue(final Object value) {
|
||||||
return decorated().containsValue(value);
|
return decorated().containsValue(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritDoc}
|
|
||||||
*/
|
|
||||||
public Set<Map.Entry<K, V>> entrySet() {
|
public Set<Map.Entry<K, V>> entrySet() {
|
||||||
return decorated().entrySet();
|
return decorated().entrySet();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritDoc}
|
|
||||||
*/
|
|
||||||
public V get(final Object key) {
|
public V get(final Object key) {
|
||||||
return decorated().get(key);
|
return decorated().get(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritDoc}
|
|
||||||
*/
|
|
||||||
public V remove(final Object key) {
|
public V remove(final Object key) {
|
||||||
return decorated().remove(key);
|
return decorated().remove(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritDoc}
|
|
||||||
*/
|
|
||||||
public boolean isEmpty() {
|
public boolean isEmpty() {
|
||||||
return decorated().isEmpty();
|
return decorated().isEmpty();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritDoc}
|
|
||||||
*/
|
|
||||||
public Set<K> keySet() {
|
public Set<K> keySet() {
|
||||||
return decorated().keySet();
|
return decorated().keySet();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritDoc}
|
|
||||||
*/
|
|
||||||
public int size() {
|
public int size() {
|
||||||
return decorated().size();
|
return decorated().size();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritDoc}
|
|
||||||
*/
|
|
||||||
public Collection<V> values() {
|
public Collection<V> values() {
|
||||||
return decorated().values();
|
return decorated().values();
|
||||||
}
|
}
|
||||||
|
@ -131,9 +104,6 @@ public class AbstractIterableGetMapDecorator<K, V> implements IterableGet<K, V>
|
||||||
return new EntrySetToMapIteratorAdapter<K, V>(entrySet());
|
return new EntrySetToMapIteratorAdapter<K, V>(entrySet());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritDoc}
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(final Object object) {
|
public boolean equals(final Object object) {
|
||||||
if (object == this) {
|
if (object == this) {
|
||||||
|
@ -142,17 +112,11 @@ public class AbstractIterableGetMapDecorator<K, V> implements IterableGet<K, V>
|
||||||
return decorated().equals(object);
|
return decorated().equals(object);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritDoc}
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return decorated().hashCode();
|
return decorated().hashCode();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritDoc}
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return decorated().toString();
|
return decorated().toString();
|
||||||
|
|
|
@ -75,11 +75,16 @@ public class TransformedMap<J, K, U, V> extends AbstractIterableGetMapDecorator<
|
||||||
* If there are any elements already in the map being decorated, they are
|
* If there are any elements already in the map being decorated, they are
|
||||||
* NOT transformed.
|
* NOT transformed.
|
||||||
*
|
*
|
||||||
|
* @param <J> the input key type
|
||||||
|
* @param <K> the output key type
|
||||||
|
* @param <U> the input value type
|
||||||
|
* @param <V> the output value type
|
||||||
* @param map the map to decorate, must not be null
|
* @param map the map to decorate, must not be null
|
||||||
* @param keyTransformer the transformer to use for key conversion, 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
|
* @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
|
* @throws IllegalArgumentException if map is null
|
||||||
*/
|
*/
|
||||||
public static <J, K, U, V> TransformedMap<J, K, U, V> transformingMap(final Map<K, V> map,
|
public static <J, K, U, V> TransformedMap<J, K, U, V> transformingMap(final Map<K, V> map,
|
||||||
|
@ -198,23 +203,14 @@ public class TransformedMap<J, K, U, V> extends AbstractIterableGetMapDecorator<
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------
|
//-----------------------------------------------------------------------
|
||||||
/**
|
|
||||||
* {@inheritDoc}
|
|
||||||
*/
|
|
||||||
public V put(final J key, final U value) {
|
public V put(final J key, final U value) {
|
||||||
return decorated().put(transformKey(key), transformValue(value));
|
return decorated().put(transformKey(key), transformValue(value));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritDoc}
|
|
||||||
*/
|
|
||||||
public void putAll(final Map<? extends J, ? extends U> mapToCopy) {
|
public void putAll(final Map<? extends J, ? extends U> mapToCopy) {
|
||||||
decorated().putAll(transformMap(mapToCopy));
|
decorated().putAll(transformMap(mapToCopy));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritDoc}
|
|
||||||
*/
|
|
||||||
public void clear() {
|
public void clear() {
|
||||||
decorated().clear();
|
decorated().clear();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue