Class Iterables
java.lang.Object
org.codehaus.commons.compiler.util.iterator.Iterables
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Iterable<T> static <T> Iterator<T> static <T> Iterable<T> static <T> Iterable<T> filterByClass(Iterable<?> delegate, Class<T> qualifyingClass) static <T> Iterable<T> filterByClass(Object[] delegate, Class<T> qualifyingClass) static <T> Iterator<T> filterByClass(Iterator<?> delegate, Class<T> qualifyingClass) static <T> T[]static <T> T[]
-
Constructor Details
-
Iterables
private Iterables()
-
-
Method Details
-
filterByClass
- Returns:
- An
Iterablethat filters the delegate's elements by base class
-
filterByClass
- Returns:
- An
Iterablethat filters the delegate's elements by base class
-
filterByClass
- Returns:
- An
Iteratorthat filters the delegate's products by base class
-
filter
- Returns:
- An
Iterablethat discriminates the delegate's elements with the predicate
-
filter
public static <T> Iterable<T> filter(Iterable<? extends T> delegate, Predicate<? super T> predicate) - Returns:
- An
Iterablethat discriminates the delegate's elements with the predicate
-
filter
public static <T> Iterator<T> filter(Iterator<? extends T> delegate, Predicate<? super T> predicate) - Returns:
- An
Iteratorthat discriminates the delegate's products with the predicate
-
toArray
- Returns:
- All elements of the delegate
-
toArray
- Returns:
- All products of the delegate
-