Remove added inheritDoc tags again.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1371946 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Thomas Neidhart 2012-08-11 13:13:12 +00:00
parent 56b7b77bab
commit 5122c2adf2
7 changed files with 0 additions and 65 deletions

View File

@ -56,17 +56,14 @@ public abstract class AbstractMapEntryDecorator<K, V> implements Map.Entry<K, V>
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
/** {@inheritDoc} */
public K getKey() { public K getKey() {
return entry.getKey(); return entry.getKey();
} }
/** {@inheritDoc} */
public V getValue() { public V getValue() {
return entry.getValue(); return entry.getValue();
} }
/** {@inheritDoc} */
public V setValue(V object) { public V setValue(V object) {
return entry.setValue(object); return entry.setValue(object);
} }

View File

@ -100,17 +100,14 @@ public abstract class AbstractLinkedList<E> implements List<E> {
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
/** {@inheritDoc} */
public int size() { public int size() {
return size; return size;
} }
/** {@inheritDoc} */
public boolean isEmpty() { public boolean isEmpty() {
return (size() == 0); return (size() == 0);
} }
/** {@inheritDoc} */
public E get(int index) { public E get(int index) {
Node<E> node = getNode(index, false); Node<E> node = getNode(index, false);
return node.getValue(); return node.getValue();
@ -118,24 +115,20 @@ public abstract class AbstractLinkedList<E> implements List<E> {
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
/** {@inheritDoc} */
public Iterator<E> iterator() { public Iterator<E> iterator() {
return listIterator(); return listIterator();
} }
/** {@inheritDoc} */
public ListIterator<E> listIterator() { public ListIterator<E> listIterator() {
return new LinkedListIterator<E>(this, 0); return new LinkedListIterator<E>(this, 0);
} }
/** {@inheritDoc} */
public ListIterator<E> listIterator(int fromIndex) { public ListIterator<E> listIterator(int fromIndex) {
return new LinkedListIterator<E>(this, fromIndex); return new LinkedListIterator<E>(this, fromIndex);
} }
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
/** {@inheritDoc} */
public int indexOf(Object value) { public int indexOf(Object value) {
int i = 0; int i = 0;
for (Node<E> node = header.next; node != header; node = node.next) { for (Node<E> node = header.next; node != header; node = node.next) {
@ -147,7 +140,6 @@ public abstract class AbstractLinkedList<E> implements List<E> {
return -1; return -1;
} }
/** {@inheritDoc} */
public int lastIndexOf(Object value) { public int lastIndexOf(Object value) {
int i = size - 1; int i = size - 1;
for (Node<E> node = header.previous; node != header; node = node.previous) { for (Node<E> node = header.previous; node != header; node = node.previous) {
@ -159,12 +151,10 @@ public abstract class AbstractLinkedList<E> implements List<E> {
return -1; return -1;
} }
/** {@inheritDoc} */
public boolean contains(Object value) { public boolean contains(Object value) {
return indexOf(value) != -1; return indexOf(value) != -1;
} }
/** {@inheritDoc} */
public boolean containsAll(Collection<?> coll) { public boolean containsAll(Collection<?> coll) {
for (Object o : coll) { for (Object o : coll) {
if (!contains(o)) { if (!contains(o)) {
@ -176,12 +166,10 @@ public abstract class AbstractLinkedList<E> implements List<E> {
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
/** {@inheritDoc} */
public Object[] toArray() { public Object[] toArray() {
return toArray(new Object[size]); return toArray(new Object[size]);
} }
/** {@inheritDoc} */
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public <T> T[] toArray(T[] array) { public <T> T[] toArray(T[] array) {
// Extend the array if needed // Extend the array if needed
@ -214,24 +202,20 @@ public abstract class AbstractLinkedList<E> implements List<E> {
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
/** {@inheritDoc} */
public boolean add(E value) { public boolean add(E value) {
addLast(value); addLast(value);
return true; return true;
} }
/** {@inheritDoc} */
public void add(int index, E value) { public void add(int index, E value) {
Node<E> node = getNode(index, true); Node<E> node = getNode(index, true);
addNodeBefore(node, value); addNodeBefore(node, value);
} }
/** {@inheritDoc} */
public boolean addAll(Collection<? extends E> coll) { public boolean addAll(Collection<? extends E> coll) {
return addAll(size, coll); return addAll(size, coll);
} }
/** {@inheritDoc} */
public boolean addAll(int index, Collection<? extends E> coll) { public boolean addAll(int index, Collection<? extends E> coll) {
Node<E> node = getNode(index, true); Node<E> node = getNode(index, true);
for (E e : coll) { for (E e : coll) {
@ -242,7 +226,6 @@ public abstract class AbstractLinkedList<E> implements List<E> {
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
/** {@inheritDoc} */
public E remove(int index) { public E remove(int index) {
Node<E> node = getNode(index, false); Node<E> node = getNode(index, false);
E oldValue = node.getValue(); E oldValue = node.getValue();
@ -250,7 +233,6 @@ public abstract class AbstractLinkedList<E> implements List<E> {
return oldValue; return oldValue;
} }
/** {@inheritDoc} */
public boolean remove(Object value) { public boolean remove(Object value) {
for (Node<E> node = header.next; node != header; node = node.next) { for (Node<E> node = header.next; node != header; node = node.next) {
if (isEqualValue(node.getValue(), value)) { if (isEqualValue(node.getValue(), value)) {
@ -261,7 +243,6 @@ public abstract class AbstractLinkedList<E> implements List<E> {
return false; return false;
} }
/** {@inheritDoc} */
public boolean removeAll(Collection<?> coll) { public boolean removeAll(Collection<?> coll) {
boolean modified = false; boolean modified = false;
Iterator<E> it = iterator(); Iterator<E> it = iterator();
@ -276,7 +257,6 @@ public abstract class AbstractLinkedList<E> implements List<E> {
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
/** {@inheritDoc} */
public boolean retainAll(Collection<?> coll) { public boolean retainAll(Collection<?> coll) {
boolean modified = false; boolean modified = false;
Iterator<E> it = iterator(); Iterator<E> it = iterator();
@ -289,7 +269,6 @@ public abstract class AbstractLinkedList<E> implements List<E> {
return modified; return modified;
} }
/** {@inheritDoc} */
public E set(int index, E value) { public E set(int index, E value) {
Node<E> node = getNode(index, false); Node<E> node = getNode(index, false);
E oldValue = node.getValue(); E oldValue = node.getValue();
@ -297,7 +276,6 @@ public abstract class AbstractLinkedList<E> implements List<E> {
return oldValue; return oldValue;
} }
/** {@inheritDoc} */
public void clear() { public void clear() {
removeAllNodes(); removeAllNodes();
} }

View File

@ -67,52 +67,42 @@ public abstract class AbstractListDecorator<E> extends AbstractCollectionDecorat
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
/** {@inheritDoc} */
public void add(int index, E object) { public void add(int index, E object) {
decorated().add(index, object); decorated().add(index, object);
} }
/** {@inheritDoc} */
public boolean addAll(int index, Collection<? extends E> coll) { public boolean addAll(int index, Collection<? extends E> coll) {
return decorated().addAll(index, coll); return decorated().addAll(index, coll);
} }
/** {@inheritDoc} */
public E get(int index) { public E get(int index) {
return decorated().get(index); return decorated().get(index);
} }
/** {@inheritDoc} */
public int indexOf(Object object) { public int indexOf(Object object) {
return decorated().indexOf(object); return decorated().indexOf(object);
} }
/** {@inheritDoc} */
public int lastIndexOf(Object object) { public int lastIndexOf(Object object) {
return decorated().lastIndexOf(object); return decorated().lastIndexOf(object);
} }
/** {@inheritDoc} */
public ListIterator<E> listIterator() { public ListIterator<E> listIterator() {
return decorated().listIterator(); return decorated().listIterator();
} }
/** {@inheritDoc} */
public ListIterator<E> listIterator(int index) { public ListIterator<E> listIterator(int index) {
return decorated().listIterator(index); return decorated().listIterator(index);
} }
/** {@inheritDoc} */
public E remove(int index) { public E remove(int index) {
return decorated().remove(index); return decorated().remove(index);
} }
/** {@inheritDoc} */
public E set(int index, E object) { public E set(int index, E object) {
return decorated().set(index, object); return decorated().set(index, object);
} }
/** {@inheritDoc} */
public List<E> subList(int fromIndex, int toIndex) { public List<E> subList(int fromIndex, int toIndex) {
return decorated().subList(fromIndex, toIndex); return decorated().subList(fromIndex, toIndex);
} }

View File

@ -170,12 +170,10 @@ public class FixedSizeList<E>
} }
} }
/** {@inheritDoc} */
public boolean isFull() { public boolean isFull() {
return true; return true;
} }
/** {@inheritDoc} */
public int maxSize() { public int maxSize() {
return size(); return size();
} }

View File

@ -90,35 +90,29 @@ public class PredicatedList<E> extends PredicatedCollection<E> implements List<E
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
/** {@inheritDoc} */
public E get(int index) { public E get(int index) {
return decorated().get(index); return decorated().get(index);
} }
/** {@inheritDoc} */
public int indexOf(Object object) { public int indexOf(Object object) {
return decorated().indexOf(object); return decorated().indexOf(object);
} }
/** {@inheritDoc} */
public int lastIndexOf(Object object) { public int lastIndexOf(Object object) {
return decorated().lastIndexOf(object); return decorated().lastIndexOf(object);
} }
/** {@inheritDoc} */
public E remove(int index) { public E remove(int index) {
return decorated().remove(index); return decorated().remove(index);
} }
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
/** {@inheritDoc} */
public void add(int index, E object) { public void add(int index, E object) {
validate(object); validate(object);
decorated().add(index, object); decorated().add(index, object);
} }
/** {@inheritDoc} */
public boolean addAll(int index, Collection<? extends E> coll) { public boolean addAll(int index, Collection<? extends E> coll) {
for (E aColl : coll) { for (E aColl : coll) {
validate(aColl); validate(aColl);
@ -126,23 +120,19 @@ public class PredicatedList<E> extends PredicatedCollection<E> implements List<E
return decorated().addAll(index, coll); return decorated().addAll(index, coll);
} }
/** {@inheritDoc} */
public ListIterator<E> listIterator() { public ListIterator<E> listIterator() {
return listIterator(0); return listIterator(0);
} }
/** {@inheritDoc} */
public ListIterator<E> listIterator(int i) { public ListIterator<E> listIterator(int i) {
return new PredicatedListIterator(decorated().listIterator(i)); return new PredicatedListIterator(decorated().listIterator(i));
} }
/** {@inheritDoc} */
public E set(int index, E object) { public E set(int index, E object) {
validate(object); validate(object);
return decorated().set(index, object); return decorated().set(index, object);
} }
/** {@inheritDoc} */
public List<E> subList(int fromIndex, int toIndex) { public List<E> subList(int fromIndex, int toIndex) {
List<E> sub = decorated().subList(fromIndex, toIndex); List<E> sub = decorated().subList(fromIndex, toIndex);
return new PredicatedList<E>(sub, predicate); return new PredicatedList<E>(sub, predicate);

View File

@ -83,35 +83,30 @@ public class SynchronizedList<E> extends SynchronizedCollection<E> implements Li
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
/** {@inheritDoc} */
public void add(int index, E object) { public void add(int index, E object) {
synchronized (lock) { synchronized (lock) {
getList().add(index, object); getList().add(index, object);
} }
} }
/** {@inheritDoc} */
public boolean addAll(int index, Collection<? extends E> coll) { public boolean addAll(int index, Collection<? extends E> coll) {
synchronized (lock) { synchronized (lock) {
return getList().addAll(index, coll); return getList().addAll(index, coll);
} }
} }
/** {@inheritDoc} */
public E get(int index) { public E get(int index) {
synchronized (lock) { synchronized (lock) {
return getList().get(index); return getList().get(index);
} }
} }
/** {@inheritDoc} */
public int indexOf(Object object) { public int indexOf(Object object) {
synchronized (lock) { synchronized (lock) {
return getList().indexOf(object); return getList().indexOf(object);
} }
} }
/** {@inheritDoc} */
public int lastIndexOf(Object object) { public int lastIndexOf(Object object) {
synchronized (lock) { synchronized (lock) {
return getList().lastIndexOf(object); return getList().lastIndexOf(object);
@ -147,21 +142,18 @@ public class SynchronizedList<E> extends SynchronizedCollection<E> implements Li
return getList().listIterator(index); return getList().listIterator(index);
} }
/** {@inheritDoc} */
public E remove(int index) { public E remove(int index) {
synchronized (lock) { synchronized (lock) {
return getList().remove(index); return getList().remove(index);
} }
} }
/** {@inheritDoc} */
public E set(int index, E object) { public E set(int index, E object) {
synchronized (lock) { synchronized (lock) {
return getList().set(index, object); return getList().set(index, object);
} }
} }
/** {@inheritDoc} */
public List<E> subList(int fromIndex, int toIndex) { public List<E> subList(int fromIndex, int toIndex) {
synchronized (lock) { synchronized (lock) {
List<E> list = getList().subList(fromIndex, toIndex); List<E> list = getList().subList(fromIndex, toIndex);

View File

@ -115,57 +115,47 @@ public class TransformedList<E> extends TransformedCollection<E> implements List
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
/** {@inheritDoc} */
public E get(int index) { public E get(int index) {
return getList().get(index); return getList().get(index);
} }
/** {@inheritDoc} */
public int indexOf(Object object) { public int indexOf(Object object) {
return getList().indexOf(object); return getList().indexOf(object);
} }
/** {@inheritDoc} */
public int lastIndexOf(Object object) { public int lastIndexOf(Object object) {
return getList().lastIndexOf(object); return getList().lastIndexOf(object);
} }
/** {@inheritDoc} */
public E remove(int index) { public E remove(int index) {
return getList().remove(index); return getList().remove(index);
} }
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
/** {@inheritDoc} */
public void add(int index, E object) { public void add(int index, E object) {
object = transform(object); object = transform(object);
getList().add(index, object); getList().add(index, object);
} }
/** {@inheritDoc} */
public boolean addAll(int index, Collection<? extends E> coll) { public boolean addAll(int index, Collection<? extends E> coll) {
coll = transform(coll); coll = transform(coll);
return getList().addAll(index, coll); return getList().addAll(index, coll);
} }
/** {@inheritDoc} */
public ListIterator<E> listIterator() { public ListIterator<E> listIterator() {
return listIterator(0); return listIterator(0);
} }
/** {@inheritDoc} */
public ListIterator<E> listIterator(int i) { public ListIterator<E> listIterator(int i) {
return new TransformedListIterator(getList().listIterator(i)); return new TransformedListIterator(getList().listIterator(i));
} }
/** {@inheritDoc} */
public E set(int index, E object) { public E set(int index, E object) {
object = transform(object); object = transform(object);
return getList().set(index, object); return getList().set(index, object);
} }
/** {@inheritDoc} */
public List<E> subList(int fromIndex, int toIndex) { public List<E> subList(int fromIndex, int toIndex) {
List<E> sub = getList().subList(fromIndex, toIndex); List<E> sub = getList().subList(fromIndex, toIndex);
return new TransformedList<E>(sub, transformer); return new TransformedList<E>(sub, transformer);