Fix checkstyle warnings.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1682211 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b1e21c8a6e
commit
ba72be98b6
|
@ -279,6 +279,7 @@ public class FluentIterable<E> implements Iterable<E> {
|
||||||
* Returns a new FluentIterable whose iterator will return all elements
|
* Returns a new FluentIterable whose iterator will return all elements
|
||||||
* of this iterable transformed by the provided transformer.
|
* of this iterable transformed by the provided transformer.
|
||||||
*
|
*
|
||||||
|
* @param <O> the output element type
|
||||||
* @param transformer the transformer applied to each element
|
* @param transformer the transformer applied to each element
|
||||||
* @return a new iterable, providing a transformed view of this iterable
|
* @return a new iterable, providing a transformed view of this iterable
|
||||||
* @throws NullPointerException if transformer is null
|
* @throws NullPointerException if transformer is null
|
||||||
|
@ -315,7 +316,7 @@ public class FluentIterable<E> implements Iterable<E> {
|
||||||
* the elements of this iterable and the other iterable in
|
* the elements of this iterable and the other iterable in
|
||||||
* alternating order.
|
* alternating order.
|
||||||
*
|
*
|
||||||
* @param other the other iterable to interleave
|
* @param others the iterables to interleave
|
||||||
* @return a new iterable, interleaving this iterable with others
|
* @return a new iterable, interleaving this iterable with others
|
||||||
*/
|
*/
|
||||||
public FluentIterable<E> zip(final Iterable<E>... others) {
|
public FluentIterable<E> zip(final Iterable<E>... others) {
|
||||||
|
|
|
@ -124,7 +124,6 @@ public class IterableUtils {
|
||||||
@Override
|
@Override
|
||||||
public Iterator<E> iterator() {
|
public Iterator<E> iterator() {
|
||||||
return new LazyIteratorChain<E>() {
|
return new LazyIteratorChain<E>() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Iterator<? extends E> nextIterator(int count) {
|
protected Iterator<? extends E> nextIterator(int count) {
|
||||||
if (count > iterables.length) {
|
if (count > iterables.length) {
|
||||||
|
@ -133,7 +132,6 @@ public class IterableUtils {
|
||||||
return emptyIteratorIfNull(iterables[count - 1]);
|
return emptyIteratorIfNull(iterables[count - 1]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -275,8 +273,7 @@ public class IterableUtils {
|
||||||
* <p>
|
* <p>
|
||||||
* In case the provided iterable is a {@link List} instance, a
|
* In case the provided iterable is a {@link List} instance, a
|
||||||
* {@link ReverseListIterator} will be used to reverse the traversal
|
* {@link ReverseListIterator} will be used to reverse the traversal
|
||||||
* order, otherwise an intermediate {@link List} needs to be
|
* order, otherwise an intermediate {@link List} needs to be created.
|
||||||
* created.
|
|
||||||
* <p>
|
* <p>
|
||||||
* The returned iterable's iterator supports {@code remove()} if the
|
* The returned iterable's iterator supports {@code remove()} if the
|
||||||
* provided iterable is a {@link List} instance.
|
* provided iterable is a {@link List} instance.
|
||||||
|
@ -337,7 +334,8 @@ public class IterableUtils {
|
||||||
* The returned iterable's iterator supports {@code remove()} when the corresponding
|
* The returned iterable's iterator supports {@code remove()} when the corresponding
|
||||||
* input iterator supports it.
|
* input iterator supports it.
|
||||||
*
|
*
|
||||||
* @param <E> the element type
|
* @param <I> the input element type
|
||||||
|
* @param <O> the output element type
|
||||||
* @param iterable the iterable to transform, may be null
|
* @param iterable the iterable to transform, may be null
|
||||||
* @param transformer the transformer , must not be null
|
* @param transformer the transformer , must not be null
|
||||||
* @return a transformed view of the specified iterable
|
* @return a transformed view of the specified iterable
|
||||||
|
@ -412,8 +410,7 @@ public class IterableUtils {
|
||||||
* input iterator supports it.
|
* input iterator supports it.
|
||||||
*
|
*
|
||||||
* @param <E> the element type
|
* @param <E> the element type
|
||||||
* @param a the first iterable
|
* @param iterables the array of iterables to interleave
|
||||||
* @param b the second iterable
|
|
||||||
* @return a new iterable, interleaving the provided iterables
|
* @return a new iterable, interleaving the provided iterables
|
||||||
*/
|
*/
|
||||||
public static <E> Iterable<E> zippingIterable(final Iterable<E>... iterables) {
|
public static <E> Iterable<E> zippingIterable(final Iterable<E>... iterables) {
|
||||||
|
@ -463,7 +460,7 @@ public class IterableUtils {
|
||||||
* A <code>null</code> or empty iterable returns true.
|
* A <code>null</code> or empty iterable returns true.
|
||||||
*
|
*
|
||||||
* @param <E> the type of object the {@link Iterable} contains
|
* @param <E> the type of object the {@link Iterable} contains
|
||||||
* @param input the {@link Iterable} to use, may be null
|
* @param iterable the {@link Iterable} to use, may be null
|
||||||
* @param predicate the predicate to use, may not be null
|
* @param predicate the predicate to use, may not be null
|
||||||
* @return true if every element of the collection matches the predicate or if the
|
* @return true if every element of the collection matches the predicate or if the
|
||||||
* collection is empty, false otherwise
|
* collection is empty, false otherwise
|
||||||
|
@ -479,7 +476,7 @@ public class IterableUtils {
|
||||||
* A <code>null</code> or empty iterable returns false.
|
* A <code>null</code> or empty iterable returns false.
|
||||||
*
|
*
|
||||||
* @param <E> the type of object the {@link Iterable} contains
|
* @param <E> the type of object the {@link Iterable} contains
|
||||||
* @param input the {@link Iterable} to use, may be null
|
* @param iterable the {@link Iterable} to use, may be null
|
||||||
* @param predicate the predicate to use, may not be null
|
* @param predicate the predicate to use, may not be null
|
||||||
* @return true if any element of the collection matches the predicate, false otherwise
|
* @return true if any element of the collection matches the predicate, false otherwise
|
||||||
* @throws NullPointerException if predicate is null
|
* @throws NullPointerException if predicate is null
|
||||||
|
@ -510,7 +507,7 @@ public class IterableUtils {
|
||||||
* A <code>null</code> or empty iterable returns false.
|
* A <code>null</code> or empty iterable returns false.
|
||||||
*
|
*
|
||||||
* @param <E> the type of object the {@link Iterable} contains
|
* @param <E> the type of object the {@link Iterable} contains
|
||||||
* @param iterator the iterable to check, may be null
|
* @param iterable the iterable to check, may be null
|
||||||
* @param object the object to check
|
* @param object the object to check
|
||||||
* @return true if the object is contained in the iterable, false otherwise
|
* @return true if the object is contained in the iterable, false otherwise
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1250,7 +1250,7 @@ public class IteratorUtils {
|
||||||
* A <code>null</code> or empty iterator returns false.
|
* A <code>null</code> or empty iterator returns false.
|
||||||
*
|
*
|
||||||
* @param <E> the type of object the {@link Iterator} contains
|
* @param <E> the type of object the {@link Iterator} contains
|
||||||
* @param input the {@link Iterator} to use, may be null
|
* @param iterator the {@link Iterator} to use, may be null
|
||||||
* @param predicate the predicate to use, may not be null
|
* @param predicate the predicate to use, may not be null
|
||||||
* @return true if any element of the collection matches the predicate, false otherwise
|
* @return true if any element of the collection matches the predicate, false otherwise
|
||||||
* @throws NullPointerException if predicate is null
|
* @throws NullPointerException if predicate is null
|
||||||
|
@ -1278,7 +1278,7 @@ public class IteratorUtils {
|
||||||
* A <code>null</code> or empty iterator returns true.
|
* A <code>null</code> or empty iterator returns true.
|
||||||
*
|
*
|
||||||
* @param <E> the type of object the {@link Iterator} contains
|
* @param <E> the type of object the {@link Iterator} contains
|
||||||
* @param input the {@link Iterator} to use, may be null
|
* @param iterator the {@link Iterator} to use, may be null
|
||||||
* @param predicate the predicate to use, may not be null
|
* @param predicate the predicate to use, may not be null
|
||||||
* @return true if every element of the collection matches the predicate or if the
|
* @return true if every element of the collection matches the predicate or if the
|
||||||
* collection is empty, false otherwise
|
* collection is empty, false otherwise
|
||||||
|
@ -1386,7 +1386,7 @@ public class IteratorUtils {
|
||||||
* converted to strings as by {@code String.valueOf(Object)}.
|
* converted to strings as by {@code String.valueOf(Object)}.
|
||||||
*
|
*
|
||||||
* @param <E> the element type
|
* @param <E> the element type
|
||||||
* @param iterable the iterator to convert to a string
|
* @param iterator the iterator to convert to a string
|
||||||
* @return a string representation of {@code iterator}
|
* @return a string representation of {@code iterator}
|
||||||
* @since 4.1
|
* @since 4.1
|
||||||
*/
|
*/
|
||||||
|
@ -1405,7 +1405,7 @@ public class IteratorUtils {
|
||||||
* converted to strings as by using the provided {@code transformer}.
|
* converted to strings as by using the provided {@code transformer}.
|
||||||
*
|
*
|
||||||
* @param <E> the element type
|
* @param <E> the element type
|
||||||
* @param iterable the iterator to convert to a string, may be null
|
* @param iterator the iterator to convert to a string, may be null
|
||||||
* @param transformer the transformer used to get a string representation of an element
|
* @param transformer the transformer used to get a string representation of an element
|
||||||
* @return a string representation of {@code iterator}
|
* @return a string representation of {@code iterator}
|
||||||
* @throws NullPointerException if {@code transformer} is null
|
* @throws NullPointerException if {@code transformer} is null
|
||||||
|
|
|
@ -167,6 +167,7 @@ public class SetUtils {
|
||||||
* using {@link java.util.Collections#synchronizedSet(Set)}. This class may throw
|
* using {@link java.util.Collections#synchronizedSet(Set)}. This class may throw
|
||||||
* exceptions when accessed by concurrent threads without synchronization.
|
* exceptions when accessed by concurrent threads without synchronization.
|
||||||
*
|
*
|
||||||
|
* @param <E> the element type
|
||||||
* @return a new identity hash set
|
* @return a new identity hash set
|
||||||
* @since 4.1
|
* @since 4.1
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue