Remove trailing spaces.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1477756 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Thomas Neidhart 2013-04-30 18:31:13 +00:00
parent 315b0c786f
commit d6b40fdbe9
12 changed files with 50 additions and 50 deletions

View File

@ -38,7 +38,7 @@ public abstract class AbstractSerializableSetDecorator<E>
/**
* Constructor.
*
*
* @param set the list to decorate, must not be null
* @throws IllegalArgumentException if set is null
*/
@ -49,7 +49,7 @@ public abstract class AbstractSerializableSetDecorator<E>
//-----------------------------------------------------------------------
/**
* Write the set out using a custom routine.
*
*
* @param out the output stream
* @throws IOException
*/
@ -60,7 +60,7 @@ public abstract class AbstractSerializableSetDecorator<E>
/**
* Read the set in using a custom routine.
*
*
* @param in the input stream
* @throws IOException
* @throws ClassNotFoundException

View File

@ -45,7 +45,7 @@ public abstract class AbstractSetDecorator<E> extends AbstractCollectionDecorato
/**
* Constructor that wraps (not copies).
*
*
* @param set the set to decorate, must not be null
* @throws IllegalArgumentException if set is null
*/
@ -55,7 +55,7 @@ public abstract class AbstractSetDecorator<E> extends AbstractCollectionDecorato
/**
* Gets the set being decorated.
*
*
* @return the decorated set
*/
@Override

View File

@ -46,7 +46,7 @@ public abstract class AbstractSortedSetDecorator<E>
/**
* Constructor that wraps (not copies).
*
*
* @param set the set to decorate, must not be null
* @throws IllegalArgumentException if set is null
*/
@ -56,7 +56,7 @@ public abstract class AbstractSortedSetDecorator<E>
/**
* Gets the set being decorated.
*
*
* @return the decorated set
*/
@Override

View File

@ -43,7 +43,7 @@ import org.apache.commons.collections4.list.UnmodifiableList;
* anymore due to its input restrictions (only accepts Sets).
* See <a href="https://issues.apache.org/jira/browse/COLLECTIONS-424">COLLECTIONS-424</a>
* for more details.
*
*
* @since 3.0
* @version $Id$
*/
@ -77,7 +77,7 @@ public class CompositeSet<E> implements Set<E>, Serializable {
/**
* Create a composite set with sets as the initial set of composited Sets.
*
*
* @param sets the initial sets in the composite
*/
public CompositeSet(final Set<E>... sets) {

View File

@ -46,7 +46,7 @@ import org.apache.commons.collections4.list.UnmodifiableList;
* set.
* <p>
* This class is Serializable from Commons Collections 3.1.
*
*
* @since 3.0
* @version $Id$
*/
@ -65,7 +65,7 @@ public class ListOrderedSet<E>
* use.
* <p>
* The list and set must both be empty.
*
*
* @param <E> the element type
* @param set the set to decorate, must be empty and not null
* @param list the list to decorate, must be empty and not null
@ -91,7 +91,7 @@ public class ListOrderedSet<E>
* Factory method to create an ordered set.
* <p>
* An <code>ArrayList</code> is used to retain order.
*
*
* @param <E> the element type
* @param set the set to decorate, must not be null
* @return a new ordered set
@ -109,7 +109,7 @@ public class ListOrderedSet<E>
* <p>
* NOTE: If the list contains duplicates, the duplicates are removed,
* altering the specified list.
*
*
* @param <E> the element type
* @param list the list to decorate, must not be null
* @return a new ordered set
@ -129,7 +129,7 @@ public class ListOrderedSet<E>
/**
* Constructs a new empty <code>ListOrderedSet</code> using a
* <code>HashSet</code> and an <code>ArrayList</code> internally.
*
*
* @since 3.1
*/
public ListOrderedSet() {
@ -139,7 +139,7 @@ public class ListOrderedSet<E>
/**
* Constructor that wraps (not copies).
*
*
* @param set the set to decorate, must not be null
* @throws IllegalArgumentException if set is null
*/
@ -153,7 +153,7 @@ public class ListOrderedSet<E>
* use.
* <p>
* The set and list must both be correctly initialised to the same elements.
*
*
* @param set the set to decorate, must not be null
* @param list the list to decorate, must not be null
* @throws IllegalArgumentException if set or list is null
@ -169,7 +169,7 @@ public class ListOrderedSet<E>
// -----------------------------------------------------------------------
/**
* Gets an unmodifiable view of the order of the Set.
*
*
* @return an unmodifiable list view
*/
public List<E> asList() {
@ -263,7 +263,7 @@ public class ListOrderedSet<E>
/**
* Returns the element at the specified position in this ordered set.
*
*
* @param index the position of the element in the ordered {@link Set}.
* @return the element at position {@code index}
* @see List#get(int)
@ -275,7 +275,7 @@ public class ListOrderedSet<E>
/**
* Returns the index of the first occurrence of the specified element in
* ordered set.
*
*
* @param object the element to search for
* @return the index of the first occurrence of the object, or {@code -1} if
* this ordered set does not contain this object
@ -289,7 +289,7 @@ public class ListOrderedSet<E>
* Inserts the specified element at the specified position if it is not yet
* contained in this ordered set (optional operation). Shifts the element
* currently at this position and any subsequent elements to the right.
*
*
* @param index the index at which the element is to be inserted
* @param object the element to be inserted
* @see List#add(int, Object)
@ -306,7 +306,7 @@ public class ListOrderedSet<E>
* ordered set at the specified position (optional operation). Shifts the
* element currently at the position and all subsequent elements to the
* right.
*
*
* @param index the position to insert the elements
* @param coll the collection containing the elements to be inserted
* @return {@code true} if this ordered set changed as a result of the call
@ -335,7 +335,7 @@ public class ListOrderedSet<E>
/**
* Removes the element at the specified position from the ordered set.
* Shifts any subsequent elements to the left.
*
*
* @param index the index of the element to be removed
* @return the element that has been remove from the ordered set
* @see List#remove(int)
@ -350,7 +350,7 @@ public class ListOrderedSet<E>
* Uses the underlying List's toString so that order is achieved. This means
* that the decorated Set's toString is not used, so any custom toStrings
* will be ignored.
*
*
* @return a string representation of the ordered set
*/
// Fortunately List.toString and Set.toString look the same

View File

@ -48,7 +48,7 @@ public final class MapBackedSet<E, V> implements Set<E>, Serializable {
/**
* Factory method to create a set from a map.
*
*
* @param <E> the element type
* @param <V> the dummy value type in the map
* @param map the map to decorate, must not be null
@ -61,7 +61,7 @@ public final class MapBackedSet<E, V> implements Set<E>, Serializable {
/**
* Factory method to create a set from a map.
*
*
* @param <E> the element type
* @param <V> the dummy value type in the map
* @param map the map to decorate, must not be null
@ -79,7 +79,7 @@ public final class MapBackedSet<E, V> implements Set<E>, Serializable {
//-----------------------------------------------------------------------
/**
* Constructor that wraps (not copies).
*
*
* @param map the map to decorate, must not be null
* @param dummyValue the dummy value to use
* @throws IllegalArgumentException if map is null

View File

@ -47,7 +47,7 @@ public class PredicatedSet<E> extends PredicatedCollection<E> implements Set<E>
* <p>
* If there are any elements already in the set being decorated, they
* are validated.
*
*
* @param <E> the element type
* @param set the set to decorate, must not be null
* @param predicate the predicate to use for validation, must not be null
@ -65,7 +65,7 @@ public class PredicatedSet<E> extends PredicatedCollection<E> implements Set<E>
* <p>
* If there are any elements already in the set being decorated, they
* are validated.
*
*
* @param set the set to decorate, must not be null
* @param predicate the predicate to use for validation, must not be null
* @throws IllegalArgumentException if set or predicate is null
@ -77,7 +77,7 @@ public class PredicatedSet<E> extends PredicatedCollection<E> implements Set<E>
/**
* Gets the set being decorated.
*
*
* @return the decorated set
*/
@Override

View File

@ -47,7 +47,7 @@ public class PredicatedSortedSet<E> extends PredicatedSet<E> implements SortedSe
* <p>
* If there are any elements already in the set being decorated, they
* are validated.
*
*
* @param <E> the element type
* @param set the set to decorate, must not be null
* @param predicate the predicate to use for validation, must not be null
@ -66,7 +66,7 @@ public class PredicatedSortedSet<E> extends PredicatedSet<E> implements SortedSe
* <p>
* If there are any elements already in the set being decorated, they
* are validated.
*
*
* @param set the set to decorate, must not be null
* @param predicate the predicate to use for validation, must not be null
* @throws IllegalArgumentException if set or predicate is null
@ -78,7 +78,7 @@ public class PredicatedSortedSet<E> extends PredicatedSet<E> implements SortedSe
/**
* Gets the sorted set being decorated.
*
*
* @return the decorated sorted set
*/
@Override

View File

@ -45,7 +45,7 @@ public class TransformedSet<E> extends TransformedCollection<E> implements Set<E
* If there are any elements already in the set being decorated, they
* are NOT transformed.
* Contrast this with {@link #transformedSet(Set, Transformer)}.
*
*
* @param <E> the element type
* @param set the set to decorate, must not be null
* @param transformer the transformer to use for conversion, must not be null
@ -56,7 +56,7 @@ public class TransformedSet<E> extends TransformedCollection<E> implements Set<E
final Transformer<? super E, ? extends E> transformer) {
return new TransformedSet<E>(set, transformer);
}
/**
* Factory method to create a transforming set that will transform
* existing contents of the specified set.
@ -64,7 +64,7 @@ public class TransformedSet<E> extends TransformedCollection<E> implements Set<E
* If there are any elements already in the set being decorated, they
* will be transformed by this method.
* Contrast this with {@link #transformingSet(Set, Transformer)}.
*
*
* @param <E> the element type
* @param set the set to decorate, must not be null
* @param transformer the transformer to use for conversion, must not be null
@ -91,7 +91,7 @@ public class TransformedSet<E> extends TransformedCollection<E> implements Set<E
* <p>
* If there are any elements already in the set being decorated, they
* are NOT transformed.
*
*
* @param set the set to decorate, must not be null
* @param transformer the transformer to use for conversion, must not be null
* @throws IllegalArgumentException if set or transformer is null

View File

@ -45,7 +45,7 @@ public class TransformedSortedSet<E> extends TransformedSet<E> implements Sorted
* If there are any elements already in the set being decorated, they
* are NOT transformed.
* Contrast this with {@link #transformedSortedSet(SortedSet, Transformer)}.
*
*
* @param <E> the element type
* @param set the set to decorate, must not be null
* @param transformer the transformer to use for conversion, must not be null
@ -56,7 +56,7 @@ public class TransformedSortedSet<E> extends TransformedSet<E> implements Sorted
final Transformer<? super E, ? extends E> transformer) {
return new TransformedSortedSet<E>(set, transformer);
}
/**
* Factory method to create a transforming sorted set that will transform
* existing contents of the specified sorted set.
@ -64,7 +64,7 @@ public class TransformedSortedSet<E> extends TransformedSet<E> implements Sorted
* If there are any elements already in the set being decorated, they
* will be transformed by this method.
* Contrast this with {@link #transformingSortedSet(SortedSet, Transformer)}.
*
*
* @param <E> the element type
* @param set the set to decorate, must not be null
* @param transformer the transformer to use for conversion, must not be null
@ -93,7 +93,7 @@ public class TransformedSortedSet<E> extends TransformedSet<E> implements Sorted
* <p>
* If there are any elements already in the set being decorated, they
* are NOT transformed.
*
*
* @param set the set to decorate, must not be null
* @param transformer the transformer to use for conversion, must not be null
* @throws IllegalArgumentException if set or transformer is null
@ -104,7 +104,7 @@ public class TransformedSortedSet<E> extends TransformedSet<E> implements Sorted
/**
* Gets the decorated set.
*
*
* @return the decorated set
*/
protected SortedSet<E> getSortedSet() {

View File

@ -28,7 +28,7 @@ import org.apache.commons.collections4.iterators.UnmodifiableIterator;
* <p>
* This class is Serializable from Commons Collections 3.1.
* <p>
* Attempts to modify it will result in an UnsupportedOperationException.
* Attempts to modify it will result in an UnsupportedOperationException.
*
* @since 3.0
* @version $Id$
@ -42,7 +42,7 @@ public final class UnmodifiableSet<E>
/**
* Factory method to create an unmodifiable set.
*
*
* @param <E> the element type
* @param set the set to decorate, must not be null
* @return a new unmodifiable set
@ -58,7 +58,7 @@ public final class UnmodifiableSet<E>
//-----------------------------------------------------------------------
/**
* Constructor that wraps (not copies).
*
*
* @param set the set to decorate, must not be null
* @throws IllegalArgumentException if set is null
*/

View File

@ -32,7 +32,7 @@ import org.apache.commons.collections4.iterators.UnmodifiableIterator;
* <p>
* This class is Serializable from Commons Collections 3.1.
* <p>
* Attempts to modify it will result in an UnsupportedOperationException.
* Attempts to modify it will result in an UnsupportedOperationException.
*
* @since 3.0
* @version $Id$
@ -46,7 +46,7 @@ public final class UnmodifiableSortedSet<E>
/**
* Factory method to create an unmodifiable set.
*
*
* @param <E> the element type
* @param set the set to decorate, must not be null
* @return a new unmodifiable {@link SortedSet}
@ -62,7 +62,7 @@ public final class UnmodifiableSortedSet<E>
//-----------------------------------------------------------------------
/**
* Write the collection out using a custom routine.
*
*
* @param out the output stream
* @throws IOException
*/
@ -73,12 +73,12 @@ public final class UnmodifiableSortedSet<E>
/**
* Read the collection in using a custom routine.
*
*
* @param in the input stream
* @throws IOException
* @throws ClassNotFoundException
*/
@SuppressWarnings("unchecked") // (1) should only fail if input stream is incorrect
@SuppressWarnings("unchecked") // (1) should only fail if input stream is incorrect
private void readObject(final ObjectInputStream in) throws IOException, ClassNotFoundException {
in.defaultReadObject();
collection = (Collection<E>) in.readObject(); // (1)
@ -87,7 +87,7 @@ public final class UnmodifiableSortedSet<E>
//-----------------------------------------------------------------------
/**
* Constructor that wraps (not copies).
*
*
* @param set the set to decorate, must not be null
* @throws IllegalArgumentException if set is null
*/