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:
parent
5546efd9f7
commit
a2e56d388b
|
@ -62,7 +62,8 @@ public class TransformIterator<I, O> implements Iterator<O> {
|
|||
* @param iterator the iterator 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();
|
||||
this.iterator = iterator;
|
||||
this.transformer = transformer;
|
||||
|
|
|
@ -43,7 +43,9 @@ public final class UnmodifiableOrderedMapIterator<K, V> implements OrderedMapIte
|
|||
* @return a new unmodifiable ordered map iterator
|
||||
* @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) {
|
||||
throw new IllegalArgumentException("OrderedMapIterator must not be null");
|
||||
}
|
||||
|
|
|
@ -594,6 +594,9 @@ public abstract class AbstractLinkedList<E> implements List<E> {
|
|||
* <p>
|
||||
* The first serializable subclass must call this method from
|
||||
* <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 {
|
||||
// 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>
|
||||
* The first serializable subclass must call this method from
|
||||
* <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")
|
||||
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
|
||||
* @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();
|
||||
this.parent = parent;
|
||||
this.expectedModCount = parent.modCount;
|
||||
|
|
Loading…
Reference in New Issue