Add javadoc, minor formatting.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1435970 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Thomas Neidhart 2013-01-20 21:20:22 +00:00
parent 5546efd9f7
commit a2e56d388b
3 changed files with 14 additions and 3 deletions

View File

@ -62,7 +62,8 @@ public class TransformIterator<I, O> implements Iterator<O> {
* @param iterator the iterator to use * @param iterator the iterator to use
* @param transformer the transformer to use * @param transformer the transformer to use
*/ */
public TransformIterator(final Iterator<? extends I> iterator, final Transformer<? super I, ? extends O> transformer) { public TransformIterator(final Iterator<? extends I> iterator,
final Transformer<? super I, ? extends O> transformer) {
super(); super();
this.iterator = iterator; this.iterator = iterator;
this.transformer = transformer; this.transformer = transformer;

View File

@ -43,7 +43,9 @@ public final class UnmodifiableOrderedMapIterator<K, V> implements OrderedMapIte
* @return a new unmodifiable ordered map iterator * @return a new unmodifiable ordered map iterator
* @throws IllegalArgumentException if the iterator is null * @throws IllegalArgumentException if the iterator is null
*/ */
public static <K, V> OrderedMapIterator<K, V> unmodifiableOrderedMapIterator(final OrderedMapIterator<K, V> iterator) { public static <K, V> OrderedMapIterator<K, V> unmodifiableOrderedMapIterator(
final OrderedMapIterator<K, V> iterator) {
if (iterator == null) { if (iterator == null) {
throw new IllegalArgumentException("OrderedMapIterator must not be null"); throw new IllegalArgumentException("OrderedMapIterator must not be null");
} }

View File

@ -594,6 +594,9 @@ public abstract class AbstractLinkedList<E> implements List<E> {
* <p> * <p>
* The first serializable subclass must call this method from * The first serializable subclass must call this method from
* <code>writeObject</code>. * <code>writeObject</code>.
*
* @param outputStream the stream to write the object to
* @throws IOException if anything goes wrong
*/ */
protected void doWriteObject(final ObjectOutputStream outputStream) throws IOException { protected void doWriteObject(final ObjectOutputStream outputStream) throws IOException {
// Write the size so we know how many nodes to read back // Write the size so we know how many nodes to read back
@ -608,6 +611,10 @@ public abstract class AbstractLinkedList<E> implements List<E> {
* <p> * <p>
* The first serializable subclass must call this method from * The first serializable subclass must call this method from
* <code>readObject</code>. * <code>readObject</code>.
*
* @param inputStream the stream to read the object from
* @throws IOException if any error occurs while reading from the stream
* @throws ClassNotFoundException if a class read from the stream can not be loaded
*/ */
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
protected void doReadObject(final ObjectInputStream inputStream) throws IOException, ClassNotFoundException { protected void doReadObject(final ObjectInputStream inputStream) throws IOException, ClassNotFoundException {
@ -773,7 +780,8 @@ public abstract class AbstractLinkedList<E> implements List<E> {
* @param fromIndex the index to start at * @param fromIndex the index to start at
* @throws IndexOutOfBoundsException if fromIndex is less than 0 or greater than the size of the list * @throws IndexOutOfBoundsException if fromIndex is less than 0 or greater than the size of the list
*/ */
protected LinkedListIterator(final AbstractLinkedList<E> parent, final int fromIndex) throws IndexOutOfBoundsException { protected LinkedListIterator(final AbstractLinkedList<E> parent, final int fromIndex)
throws IndexOutOfBoundsException {
super(); super();
this.parent = parent; this.parent = parent;
this.expectedModCount = parent.modCount; this.expectedModCount = parent.modCount;