Remove added inheritDoc tags again.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1371939 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Thomas Neidhart 2012-08-11 13:02:05 +00:00
parent bd169e674c
commit 6d5d858b17
6 changed files with 0 additions and 130 deletions

View File

@ -64,23 +64,14 @@ public abstract class AbstractBidiMapDecorator<K, V>
return decorated().mapIterator(); return decorated().mapIterator();
} }
/**
* {@inheritDoc}
*/
public K getKey(Object value) { public K getKey(Object value) {
return decorated().getKey(value); return decorated().getKey(value);
} }
/**
* {@inheritDoc}
*/
public K removeValue(Object value) { public K removeValue(Object value) {
return decorated().removeValue(value); return decorated().removeValue(value);
} }
/**
* {@inheritDoc}
*/
public BidiMap<V, K> inverseBidiMap() { public BidiMap<V, K> inverseBidiMap() {
return decorated().inverseBidiMap(); return decorated().inverseBidiMap();
} }

View File

@ -130,30 +130,18 @@ public abstract class AbstractDualBidiMap<K, V> implements BidiMap<K, V> {
// Map delegation // Map delegation
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
/**
* {@inheritDoc}
*/
public V get(Object key) { public V get(Object key) {
return normalMap.get(key); return normalMap.get(key);
} }
/**
* {@inheritDoc}
*/
public int size() { public int size() {
return normalMap.size(); return normalMap.size();
} }
/**
* {@inheritDoc}
*/
public boolean isEmpty() { public boolean isEmpty() {
return normalMap.isEmpty(); return normalMap.isEmpty();
} }
/**
* {@inheritDoc}
*/
public boolean containsKey(Object key) { public boolean containsKey(Object key) {
return normalMap.containsKey(key); return normalMap.containsKey(key);
} }
@ -176,9 +164,6 @@ public abstract class AbstractDualBidiMap<K, V> implements BidiMap<K, V> {
// BidiMap changes // BidiMap changes
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
/**
* {@inheritDoc}
*/
public V put(K key, V value) { public V put(K key, V value) {
if (normalMap.containsKey(key)) { if (normalMap.containsKey(key)) {
reverseMap.remove(normalMap.get(key)); reverseMap.remove(normalMap.get(key));
@ -191,18 +176,12 @@ public abstract class AbstractDualBidiMap<K, V> implements BidiMap<K, V> {
return obj; return obj;
} }
/**
* {@inheritDoc}
*/
public void putAll(Map<? extends K, ? extends V> map) { public void putAll(Map<? extends K, ? extends V> map) {
for (Map.Entry<? extends K, ? extends V> entry : map.entrySet()) { for (Map.Entry<? extends K, ? extends V> entry : map.entrySet()) {
put(entry.getKey(), entry.getValue()); put(entry.getKey(), entry.getValue());
} }
} }
/**
* {@inheritDoc}
*/
public V remove(Object key) { public V remove(Object key) {
V value = null; V value = null;
if (normalMap.containsKey(key)) { if (normalMap.containsKey(key)) {
@ -212,17 +191,11 @@ public abstract class AbstractDualBidiMap<K, V> implements BidiMap<K, V> {
return value; return value;
} }
/**
* {@inheritDoc}
*/
public void clear() { public void clear() {
normalMap.clear(); normalMap.clear();
reverseMap.clear(); reverseMap.clear();
} }
/**
* {@inheritDoc}
*/
public boolean containsValue(Object value) { public boolean containsValue(Object value) {
return reverseMap.containsKey(value); return reverseMap.containsKey(value);
} }
@ -244,16 +217,10 @@ public abstract class AbstractDualBidiMap<K, V> implements BidiMap<K, V> {
return new BidiMapIterator<K, V>(this); return new BidiMapIterator<K, V>(this);
} }
/**
* {@inheritDoc}
*/
public K getKey(Object value) { public K getKey(Object value) {
return reverseMap.get(value); return reverseMap.get(value);
} }
/**
* {@inheritDoc}
*/
public K removeValue(Object value) { public K removeValue(Object value) {
K key = null; K key = null;
if (reverseMap.containsKey(value)) { if (reverseMap.containsKey(value)) {
@ -263,9 +230,6 @@ public abstract class AbstractDualBidiMap<K, V> implements BidiMap<K, V> {
return key; return key;
} }
/**
* {@inheritDoc}
*/
public BidiMap<V, K> inverseBidiMap() { public BidiMap<V, K> inverseBidiMap() {
if (inverseBidiMap == null) { if (inverseBidiMap == null) {
inverseBidiMap = createBidiMap(reverseMap, normalMap, this); inverseBidiMap = createBidiMap(reverseMap, normalMap, this);
@ -728,19 +692,16 @@ public abstract class AbstractDualBidiMap<K, V> implements BidiMap<K, V> {
this.iterator = parent.normalMap.entrySet().iterator(); this.iterator = parent.normalMap.entrySet().iterator();
} }
/** {@inheritDoc} */
public boolean hasNext() { public boolean hasNext() {
return iterator.hasNext(); return iterator.hasNext();
} }
/** {@inheritDoc} */
public K next() { public K next() {
last = iterator.next(); last = iterator.next();
canRemove = true; canRemove = true;
return last.getKey(); return last.getKey();
} }
/** {@inheritDoc} */
public void remove() { public void remove() {
if (canRemove == false) { if (canRemove == false) {
throw new IllegalStateException("Iterator remove() can only be called once after next()"); throw new IllegalStateException("Iterator remove() can only be called once after next()");
@ -753,7 +714,6 @@ public abstract class AbstractDualBidiMap<K, V> implements BidiMap<K, V> {
canRemove = false; canRemove = false;
} }
/** {@inheritDoc} */
public K getKey() { public K getKey() {
if (last == null) { if (last == null) {
throw new IllegalStateException( throw new IllegalStateException(
@ -762,7 +722,6 @@ public abstract class AbstractDualBidiMap<K, V> implements BidiMap<K, V> {
return last.getKey(); return last.getKey();
} }
/** {@inheritDoc} */
public V getValue() { public V getValue() {
if (last == null) { if (last == null) {
throw new IllegalStateException( throw new IllegalStateException(
@ -771,7 +730,6 @@ public abstract class AbstractDualBidiMap<K, V> implements BidiMap<K, V> {
return last.getValue(); return last.getValue();
} }
/** {@inheritDoc} */
public V setValue(V value) { public V setValue(V value) {
if (last == null) { if (last == null) {
throw new IllegalStateException( throw new IllegalStateException(
@ -785,7 +743,6 @@ public abstract class AbstractDualBidiMap<K, V> implements BidiMap<K, V> {
return parent.put(last.getKey(), value); return parent.put(last.getKey(), value);
} }
/** {@inheritDoc} */
public void reset() { public void reset() {
iterator = parent.normalMap.entrySet().iterator(); iterator = parent.normalMap.entrySet().iterator();
last = null; last = null;

View File

@ -64,30 +64,18 @@ public abstract class AbstractOrderedBidiMapDecorator<K, V>
return decorated().mapIterator(); return decorated().mapIterator();
} }
/**
* {@inheritDoc}
*/
public K firstKey() { public K firstKey() {
return decorated().firstKey(); return decorated().firstKey();
} }
/**
* {@inheritDoc}
*/
public K lastKey() { public K lastKey() {
return decorated().lastKey(); return decorated().lastKey();
} }
/**
* {@inheritDoc}
*/
public K nextKey(K key) { public K nextKey(K key) {
return decorated().nextKey(key); return decorated().nextKey(key);
} }
/**
* {@inheritDoc}
*/
public K previousKey(K key) { public K previousKey(K key) {
return decorated().previousKey(key); return decorated().previousKey(key);
} }

View File

@ -65,37 +65,22 @@ public abstract class AbstractSortedBidiMapDecorator<K, V>
return decorated().inverseBidiMap(); return decorated().inverseBidiMap();
} }
/**
* {@inheritDoc}
*/
public Comparator<? super K> comparator() { public Comparator<? super K> comparator() {
return decorated().comparator(); return decorated().comparator();
} }
/**
* {@inheritDoc}
*/
public Comparator<? super V> valueComparator() { public Comparator<? super V> valueComparator() {
return decorated().valueComparator(); return decorated().valueComparator();
} }
/**
* {@inheritDoc}
*/
public SortedMap<K, V> subMap(K fromKey, K toKey) { public SortedMap<K, V> subMap(K fromKey, K toKey) {
return decorated().subMap(fromKey, toKey); return decorated().subMap(fromKey, toKey);
} }
/**
* {@inheritDoc}
*/
public SortedMap<K, V> headMap(K toKey) { public SortedMap<K, V> headMap(K toKey) {
return decorated().headMap(toKey); return decorated().headMap(toKey);
} }
/**
* {@inheritDoc}
*/
public SortedMap<K, V> tailMap(K fromKey) { public SortedMap<K, V> tailMap(K fromKey) {
return decorated().tailMap(fromKey); return decorated().tailMap(fromKey);
} }

View File

@ -126,38 +126,23 @@ public class DualTreeBidiMap<K, V> extends AbstractDualBidiMap<K, V>
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
/**
* {@inheritDoc}
*/
public Comparator<? super K> comparator() { public Comparator<? super K> comparator() {
return ((SortedMap<K, V>) normalMap).comparator(); return ((SortedMap<K, V>) normalMap).comparator();
} }
/**
* {@inheritDoc}
*/
public Comparator<? super V> valueComparator() { public Comparator<? super V> valueComparator() {
return ((SortedMap<V, K>) reverseMap).comparator(); return ((SortedMap<V, K>) reverseMap).comparator();
} }
/**
* {@inheritDoc}
*/
public K firstKey() { public K firstKey() {
return ((SortedMap<K, V>) normalMap).firstKey(); return ((SortedMap<K, V>) normalMap).firstKey();
} }
/**
* {@inheritDoc}
*/
public K lastKey() { public K lastKey() {
return ((SortedMap<K, V>) normalMap).lastKey(); return ((SortedMap<K, V>) normalMap).lastKey();
} }
/**
* {@inheritDoc}
*/
public K nextKey(K key) { public K nextKey(K key) {
if (isEmpty()) { if (isEmpty()) {
return null; return null;
@ -174,9 +159,6 @@ public class DualTreeBidiMap<K, V> extends AbstractDualBidiMap<K, V>
return null; return null;
} }
/**
* {@inheritDoc}
*/
public K previousKey(K key) { public K previousKey(K key) {
if (isEmpty()) { if (isEmpty()) {
return null; return null;
@ -206,49 +188,31 @@ public class DualTreeBidiMap<K, V> extends AbstractDualBidiMap<K, V>
return new BidiOrderedMapIterator<K, V>(this); return new BidiOrderedMapIterator<K, V>(this);
} }
/**
* {@inheritDoc}
*/
public SortedBidiMap<V, K> inverseSortedBidiMap() { public SortedBidiMap<V, K> inverseSortedBidiMap() {
return inverseBidiMap(); return inverseBidiMap();
} }
/**
* {@inheritDoc}
*/
public OrderedBidiMap<V, K> inverseOrderedBidiMap() { public OrderedBidiMap<V, K> inverseOrderedBidiMap() {
return inverseBidiMap(); return inverseBidiMap();
} }
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
/**
* {@inheritDoc}
*/
public SortedMap<K, V> headMap(K toKey) { public SortedMap<K, V> headMap(K toKey) {
SortedMap<K, V> sub = ((SortedMap<K, V>) normalMap).headMap(toKey); SortedMap<K, V> sub = ((SortedMap<K, V>) normalMap).headMap(toKey);
return new ViewMap<K, V>(this, sub); return new ViewMap<K, V>(this, sub);
} }
/**
* {@inheritDoc}
*/
public SortedMap<K, V> tailMap(K fromKey) { public SortedMap<K, V> tailMap(K fromKey) {
SortedMap<K, V> sub = ((SortedMap<K, V>) normalMap).tailMap(fromKey); SortedMap<K, V> sub = ((SortedMap<K, V>) normalMap).tailMap(fromKey);
return new ViewMap<K, V>(this, sub); return new ViewMap<K, V>(this, sub);
} }
/**
* {@inheritDoc}
*/
public SortedMap<K, V> subMap(K fromKey, K toKey) { public SortedMap<K, V> subMap(K fromKey, K toKey) {
SortedMap<K, V> sub = ((SortedMap<K, V>) normalMap).subMap(fromKey, toKey); SortedMap<K, V> sub = ((SortedMap<K, V>) normalMap).subMap(fromKey, toKey);
return new ViewMap<K, V>(this, sub); return new ViewMap<K, V>(this, sub);
} }
/**
* {@inheritDoc}
*/
@Override @Override
public SortedBidiMap<V, K> inverseBidiMap() { public SortedBidiMap<V, K> inverseBidiMap() {
return (SortedBidiMap<V, K>) super.inverseBidiMap(); return (SortedBidiMap<V, K>) super.inverseBidiMap();
@ -346,36 +310,30 @@ public class DualTreeBidiMap<K, V> extends AbstractDualBidiMap<K, V>
iterator = new ArrayList<Map.Entry<K, V>>(parent.entrySet()).listIterator(); iterator = new ArrayList<Map.Entry<K, V>>(parent.entrySet()).listIterator();
} }
/** {@inheritDoc} */
public boolean hasNext() { public boolean hasNext() {
return iterator.hasNext(); return iterator.hasNext();
} }
/** {@inheritDoc} */
public K next() { public K next() {
last = iterator.next(); last = iterator.next();
return last.getKey(); return last.getKey();
} }
/** {@inheritDoc} */
public boolean hasPrevious() { public boolean hasPrevious() {
return iterator.hasPrevious(); return iterator.hasPrevious();
} }
/** {@inheritDoc} */
public K previous() { public K previous() {
last = iterator.previous(); last = iterator.previous();
return last.getKey(); return last.getKey();
} }
/** {@inheritDoc} */
public void remove() { public void remove() {
iterator.remove(); iterator.remove();
parent.remove(last.getKey()); parent.remove(last.getKey());
last = null; last = null;
} }
/** {@inheritDoc} */
public K getKey() { public K getKey() {
if (last == null) { if (last == null) {
throw new IllegalStateException( throw new IllegalStateException(
@ -384,7 +342,6 @@ public class DualTreeBidiMap<K, V> extends AbstractDualBidiMap<K, V>
return last.getKey(); return last.getKey();
} }
/** {@inheritDoc} */
public V getValue() { public V getValue() {
if (last == null) { if (last == null) {
throw new IllegalStateException( throw new IllegalStateException(
@ -393,7 +350,6 @@ public class DualTreeBidiMap<K, V> extends AbstractDualBidiMap<K, V>
return last.getValue(); return last.getValue();
} }
/** {@inheritDoc} */
public V setValue(V value) { public V setValue(V value) {
if (last == null) { if (last == null) {
throw new IllegalStateException( throw new IllegalStateException(
@ -407,7 +363,6 @@ public class DualTreeBidiMap<K, V> extends AbstractDualBidiMap<K, V>
return parent.put(last.getKey(), value); return parent.put(last.getKey(), value);
} }
/** {@inheritDoc} */
public void reset() { public void reset() {
iterator = new ArrayList<Map.Entry<K, V>>(parent.entrySet()).listIterator(); iterator = new ArrayList<Map.Entry<K, V>>(parent.entrySet()).listIterator();
last = null; last = null;

View File

@ -88,9 +88,6 @@ public class TreeBidiMap<K extends Comparable<K>, V extends Comparable<V>> imple
this.description = description; this.description = description;
} }
/**
* {@inheritDoc}
*/
@Override @Override
public String toString() { public String toString() {
return description; return description;
@ -417,9 +414,6 @@ public class TreeBidiMap<K extends Comparable<K>, V extends Comparable<V>> imple
} }
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
/**
* {@inheritDoc}
*/
public OrderedMapIterator<K, V> mapIterator() { public OrderedMapIterator<K, V> mapIterator() {
if (isEmpty()) { if (isEmpty()) {
return EmptyOrderedMapIterator.<K, V>emptyOrderedMapIterator(); return EmptyOrderedMapIterator.<K, V>emptyOrderedMapIterator();