Removing tabs

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@637494 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Henri Yandell 2008-03-15 23:31:23 +00:00
parent e6a4d6910f
commit b147d16e64
10 changed files with 47 additions and 47 deletions

View File

@ -78,11 +78,11 @@ public class CursorableLinkedList implements List, Serializable {
* @param element element to be inserted. * @param element element to be inserted.
* *
* @throws ClassCastException if the class of the specified element * @throws ClassCastException if the class of the specified element
* prevents it from being added to this list. * prevents it from being added to this list.
* @throws IllegalArgumentException if some aspect of the specified * @throws IllegalArgumentException if some aspect of the specified
* element prevents it from being added to this list. * element prevents it from being added to this list.
* @throws IndexOutOfBoundsException if the index is out of range * @throws IndexOutOfBoundsException if the index is out of range
* (index < 0 || index > size()). * (index < 0 || index > size()).
*/ */
public void add(int index, Object element) { public void add(int index, Object element) {
if(index == _size) { if(index == _size) {
@ -109,7 +109,7 @@ public class CursorableLinkedList implements List, Serializable {
* @return <tt>true</tt> if this list changed as a result of the call. * @return <tt>true</tt> if this list changed as a result of the call.
* *
* @throws ClassCastException if the class of an element in the specified * @throws ClassCastException if the class of an element in the specified
* collection prevents it from being added to this list. * collection prevents it from being added to this list.
* @throws IllegalArgumentException if some aspect of an element in the * @throws IllegalArgumentException if some aspect of an element in the
* specified collection prevents it from being added to this * specified collection prevents it from being added to this
* list. * list.
@ -137,18 +137,18 @@ public class CursorableLinkedList implements List, Serializable {
* collection is this list, and it's nonempty.) * collection is this list, and it's nonempty.)
* *
* @param index index at which to insert first element from the specified * @param index index at which to insert first element from the specified
* collection. * collection.
* @param c elements to be inserted into this list. * @param c elements to be inserted into this list.
* @return <tt>true</tt> if this list changed as a result of the call. * @return <tt>true</tt> if this list changed as a result of the call.
* *
* @throws ClassCastException if the class of one of elements of the * @throws ClassCastException if the class of one of elements of the
* specified collection prevents it from being added to this * specified collection prevents it from being added to this
* list. * list.
* @throws IllegalArgumentException if some aspect of one of elements of * @throws IllegalArgumentException if some aspect of one of elements of
* the specified collection prevents it from being added to * the specified collection prevents it from being added to
* this list. * this list.
* @throws IndexOutOfBoundsException if the index is out of range (index * @throws IndexOutOfBoundsException if the index is out of range (index
* &lt; 0 || index &gt; size()). * &lt; 0 || index &gt; size()).
*/ */
public boolean addAll(int index, Collection c) { public boolean addAll(int index, Collection c) {
if(c.isEmpty()) { if(c.isEmpty()) {
@ -291,7 +291,7 @@ public class CursorableLinkedList implements List, Serializable {
* @see #listIterator(int) * @see #listIterator(int)
* @see CursorableLinkedList.Cursor * @see CursorableLinkedList.Cursor
* @throws IndexOutOfBoundsException if the index is out of range (index * @throws IndexOutOfBoundsException if the index is out of range (index
* &lt; 0 || index &gt; size()). * &lt; 0 || index &gt; size()).
*/ */
public CursorableLinkedList.Cursor cursor(int i) { public CursorableLinkedList.Cursor cursor(int i) {
return new Cursor(i); return new Cursor(i);
@ -333,7 +333,7 @@ public class CursorableLinkedList implements List, Serializable {
* @return the element at the specified position in this list. * @return the element at the specified position in this list.
* *
* @throws IndexOutOfBoundsException if the index is out of range (index * @throws IndexOutOfBoundsException if the index is out of range (index
* &lt; 0 || index &gt;= size()). * &lt; 0 || index &gt;= size()).
*/ */
public Object get(int index) { public Object get(int index) {
return getListableAt(index).value(); return getListableAt(index).value();
@ -450,7 +450,7 @@ public class CursorableLinkedList implements List, Serializable {
* *
* @param o element to search for. * @param o element to search for.
* @return the index in this list of the last occurrence of the specified * @return the index in this list of the last occurrence of the specified
* element, or -1 if this list does not contain this element. * element, or -1 if this list does not contain this element.
*/ */
public int lastIndexOf(Object o) { public int lastIndexOf(Object o) {
int ndx = _size-1; int ndx = _size-1;
@ -617,11 +617,11 @@ public class CursorableLinkedList implements List, Serializable {
* @return the element previously at the specified position. * @return the element previously at the specified position.
* *
* @throws ClassCastException if the class of the specified element * @throws ClassCastException if the class of the specified element
* prevents it from being added to this list. * prevents it from being added to this list.
* @throws IllegalArgumentException if some aspect of the specified * @throws IllegalArgumentException if some aspect of the specified
* element prevents it from being added to this list. * element prevents it from being added to this list.
* @throws IndexOutOfBoundsException if the index is out of range * @throws IndexOutOfBoundsException if the index is out of range
* (index &lt; 0 || index &gt;= size()). * (index &lt; 0 || index &gt;= size()).
*/ */
public Object set(int index, Object element) { public Object set(int index, Object element) {
Listable elt = getListableAt(index); Listable elt = getListableAt(index);

View File

@ -527,7 +527,7 @@ public class PredicateUtils {
* @param predicate the predicate to call with the result of the transform * @param predicate the predicate to call with the result of the transform
* @return the predicate * @return the predicate
* @throws IllegalArgumentException if the transformer or the predicate is null * @throws IllegalArgumentException if the transformer or the predicate is null
* @since Commons Collections 3.1 * @since Commons Collections 3.1
*/ */
public static Predicate transformedPredicate(Transformer transformer, Predicate predicate) { public static Predicate transformedPredicate(Transformer transformer, Predicate predicate) {
return TransformedPredicate.getInstance(transformer, predicate); return TransformedPredicate.getInstance(transformer, predicate);

View File

@ -48,9 +48,9 @@ public class ArrayIterator implements ResettableIterator {
/** The start index to loop from */ /** The start index to loop from */
protected int startIndex = 0; protected int startIndex = 0;
/** The end index to loop to */ /** The end index to loop to */
protected int endIndex = 0; protected int endIndex = 0;
/** The current iterator index */ /** The current iterator index */
protected int index = 0; protected int index = 0;
// Constructors // Constructors
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------

View File

@ -45,7 +45,7 @@ import org.apache.commons.collections.ResettableListIterator;
* @author Phil Steitz * @author Phil Steitz
*/ */
public class ArrayListIterator extends ArrayIterator public class ArrayListIterator extends ArrayIterator
implements ListIterator, ResettableListIterator { implements ListIterator, ResettableListIterator {
/** /**
* Holds the index of the last item returned by a call to <code>next()</code> * Holds the index of the last item returned by a call to <code>next()</code>

View File

@ -50,7 +50,7 @@ import org.apache.commons.collections.list.UnmodifiableList;
*/ */
public class IteratorChain implements Iterator { public class IteratorChain implements Iterator {
/** The chain of iterators */ /** The chain of iterators */
protected final List iteratorChain = new ArrayList(); protected final List iteratorChain = new ArrayList();
/** The index of the current iterator */ /** The index of the current iterator */
protected int currentIteratorIndex = 0; protected int currentIteratorIndex = 0;

View File

@ -42,7 +42,7 @@ import org.apache.commons.collections.ResettableListIterator;
* @author Phil Steitz * @author Phil Steitz
*/ */
public class ObjectArrayListIterator extends ObjectArrayIterator public class ObjectArrayListIterator extends ObjectArrayIterator
implements ListIterator, ResettableListIterator { implements ListIterator, ResettableListIterator {
/** /**
* Holds the index of the last item returned by a call to <code>next()</code> * Holds the index of the last item returned by a call to <code>next()</code>

View File

@ -79,7 +79,7 @@ public class ObjectGraphIterator implements Iterator {
/** The stack of iterators */ /** The stack of iterators */
protected final ArrayStack stack = new ArrayStack(8); protected final ArrayStack stack = new ArrayStack(8);
/** The root object in the tree */ /** The root object in the tree */
protected Object root; protected Object root;
/** The transformer to use */ /** The transformer to use */
protected Transformer transformer; protected Transformer transformer;

View File

@ -33,7 +33,7 @@ import org.apache.commons.collections.ResettableIterator;
* @author Rodney Waldhoff * @author Rodney Waldhoff
*/ */
public class SingletonIterator public class SingletonIterator
implements Iterator, ResettableIterator { implements Iterator, ResettableIterator {
/** Whether remove is allowed */ /** Whether remove is allowed */
private final boolean removeAllowed; private final boolean removeAllowed;

View File

@ -185,7 +185,7 @@ public class CompositeMap implements Map {
* key. * key.
* *
* @throws ClassCastException if the key is of an inappropriate type for * @throws ClassCastException if the key is of an inappropriate type for
* this map (optional). * this map (optional).
* @throws NullPointerException if the key is <tt>null</tt> and this map * @throws NullPointerException if the key is <tt>null</tt> and this map
* does not not permit <tt>null</tt> keys (optional). * does not not permit <tt>null</tt> keys (optional).
*/ */
@ -210,7 +210,7 @@ public class CompositeMap implements Map {
* @return <tt>true</tt> if this map maps one or more keys to the * @return <tt>true</tt> if this map maps one or more keys to the
* specified value. * specified value.
* @throws ClassCastException if the value is of an inappropriate type for * @throws ClassCastException if the value is of an inappropriate type for
* this map (optional). * this map (optional).
* @throws NullPointerException if the value is <tt>null</tt> and this map * @throws NullPointerException if the value is <tt>null</tt> and this map
* does not not permit <tt>null</tt> values (optional). * does not not permit <tt>null</tt> values (optional).
*/ */
@ -263,12 +263,12 @@ public class CompositeMap implements Map {
* *
* @param key key whose associated value is to be returned. * @param key key whose associated value is to be returned.
* @return the value to which this map maps the specified key, or * @return the value to which this map maps the specified key, or
* <tt>null</tt> if the map contains no mapping for this key. * <tt>null</tt> if the map contains no mapping for this key.
* *
* @throws ClassCastException if the key is of an inappropriate type for * @throws ClassCastException if the key is of an inappropriate type for
* this map (optional). * this map (optional).
* @throws NullPointerException key is <tt>null</tt> and this map does not * @throws NullPointerException key is <tt>null</tt> and this map does not
* not permit <tt>null</tt> keys (optional). * not permit <tt>null</tt> keys (optional).
* *
* @see #containsKey(Object) * @see #containsKey(Object)
*/ */
@ -329,16 +329,16 @@ public class CompositeMap implements Map {
* @param key key with which the specified value is to be associated. * @param key key with which the specified value is to be associated.
* @param value value to be associated with the specified key. * @param value value to be associated with the specified key.
* @return previous value associated with specified key, or <tt>null</tt> * @return previous value associated with specified key, or <tt>null</tt>
* if there was no mapping for key. A <tt>null</tt> return can * if there was no mapping for key. A <tt>null</tt> return can
* also indicate that the map previously associated <tt>null</tt> * also indicate that the map previously associated <tt>null</tt>
* with the specified key, if the implementation supports * with the specified key, if the implementation supports
* <tt>null</tt> values. * <tt>null</tt> values.
* *
* @throws UnsupportedOperationException if no MapMutator has been specified * @throws UnsupportedOperationException if no MapMutator has been specified
* @throws ClassCastException if the class of the specified key or value * @throws ClassCastException if the class of the specified key or value
* prevents it from being stored in this map. * prevents it from being stored in this map.
* @throws IllegalArgumentException if some aspect of this key or value * @throws IllegalArgumentException if some aspect of this key or value
* prevents it from being stored in this map. * prevents it from being stored in this map.
* @throws NullPointerException this map does not permit <tt>null</tt> * @throws NullPointerException this map does not permit <tt>null</tt>
* keys or values, and the specified key or value is * keys or values, and the specified key or value is
* <tt>null</tt>. * <tt>null</tt>.
@ -361,13 +361,13 @@ public class CompositeMap implements Map {
* @param map Mappings to be stored in this map. * @param map Mappings to be stored in this map.
* *
* @throws UnsupportedOperationException if the <tt>putAll</tt> method is * @throws UnsupportedOperationException if the <tt>putAll</tt> method is
* not supported by this map. * not supported by this map.
* *
* @throws ClassCastException if the class of a key or value in the * @throws ClassCastException if the class of a key or value in the
* specified map prevents it from being stored in this map. * specified map prevents it from being stored in this map.
* *
* @throws IllegalArgumentException some aspect of a key or value in the * @throws IllegalArgumentException some aspect of a key or value in the
* specified map prevents it from being stored in this map. * specified map prevents it from being stored in this map.
* @throws NullPointerException the specified map is <tt>null</tt>, or if * @throws NullPointerException the specified map is <tt>null</tt>, or if
* this map does not permit <tt>null</tt> keys or values, and the * this map does not permit <tt>null</tt> keys or values, and the
* specified map contains <tt>null</tt> keys or values. * specified map contains <tt>null</tt> keys or values.
@ -395,10 +395,10 @@ public class CompositeMap implements Map {
* *
* @param key key whose mapping is to be removed from the map. * @param key key whose mapping is to be removed from the map.
* @return previous value associated with specified key, or <tt>null</tt> * @return previous value associated with specified key, or <tt>null</tt>
* if there was no mapping for key. * if there was no mapping for key.
* *
* @throws ClassCastException if the key is of an inappropriate type for * @throws ClassCastException if the key is of an inappropriate type for
* the composited map (optional). * the composited map (optional).
* @throws NullPointerException if the key is <tt>null</tt> and the composited map * @throws NullPointerException if the key is <tt>null</tt> and the composited map
* does not not permit <tt>null</tt> keys (optional). * does not not permit <tt>null</tt> keys (optional).
* @throws UnsupportedOperationException if the <tt>remove</tt> method is * @throws UnsupportedOperationException if the <tt>remove</tt> method is
@ -501,16 +501,16 @@ public class CompositeMap implements Map {
* @param key key with which the specified value is to be associated. * @param key key with which the specified value is to be associated.
* @param value value to be associated with the specified key. * @param value value to be associated with the specified key.
* @return previous value associated with specified key, or <tt>null</tt> * @return previous value associated with specified key, or <tt>null</tt>
* if there was no mapping for key. A <tt>null</tt> return can * if there was no mapping for key. A <tt>null</tt> return can
* also indicate that the map previously associated <tt>null</tt> * also indicate that the map previously associated <tt>null</tt>
* with the specified key, if the implementation supports * with the specified key, if the implementation supports
* <tt>null</tt> values. * <tt>null</tt> values.
* *
* @throws UnsupportedOperationException if not defined * @throws UnsupportedOperationException if not defined
* @throws ClassCastException if the class of the specified key or value * @throws ClassCastException if the class of the specified key or value
* prevents it from being stored in this map. * prevents it from being stored in this map.
* @throws IllegalArgumentException if some aspect of this key or value * @throws IllegalArgumentException if some aspect of this key or value
* prevents it from being stored in this map. * prevents it from being stored in this map.
* @throws NullPointerException this map does not permit <tt>null</tt> * @throws NullPointerException this map does not permit <tt>null</tt>
* keys or values, and the specified key or value is * keys or values, and the specified key or value is
* <tt>null</tt>. * <tt>null</tt>.
@ -526,9 +526,9 @@ public class CompositeMap implements Map {
* *
* @throws UnsupportedOperationException if not defined * @throws UnsupportedOperationException if not defined
* @throws ClassCastException if the class of the specified key or value * @throws ClassCastException if the class of the specified key or value
* prevents it from being stored in this map. * prevents it from being stored in this map.
* @throws IllegalArgumentException if some aspect of this key or value * @throws IllegalArgumentException if some aspect of this key or value
* prevents it from being stored in this map. * prevents it from being stored in this map.
* @throws NullPointerException this map does not permit <tt>null</tt> * @throws NullPointerException this map does not permit <tt>null</tt>
* keys or values, and the specified key or value is * keys or values, and the specified key or value is
* <tt>null</tt>. * <tt>null</tt>.