Class Iterables
- java.lang.Object
-
- com.ulisesbocchio.jasyptspringboot.util.Iterables
-
public class Iterables extends Object
Iterables class.
- Version:
- $Id: $Id
- Author:
- Sergio.U.Bocchio
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIterables.IterableDecorator<U,T>static classIterables.IteratorDecorator<U,T>
-
Constructor Summary
Constructors Constructor Description Iterables()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <U,T>
Iterables.IterableDecorator<U,T>decorate(Iterable<U> source, Function<U,T> transform, Predicate<U> filter)decorate.static <T> Iterables.IterableDecorator<T,T>filter(Iterable<T> source, Predicate<T> filter)filter.static <U,T>
Iterables.IterableDecorator<U,T>transform(Iterable<U> source, Function<U,T> transform)transform.
-
-
-
Method Detail
-
decorate
public static <U,T> Iterables.IterableDecorator<U,T> decorate(Iterable<U> source, Function<U,T> transform, Predicate<U> filter)
decorate.
- Type Parameters:
U- a U classT- a T class- Parameters:
source- aIterableobjecttransform- aFunctionobjectfilter- aPredicateobject- Returns:
- a
Iterables.IterableDecoratorobject
-
transform
public static <U,T> Iterables.IterableDecorator<U,T> transform(Iterable<U> source, Function<U,T> transform)
transform.
- Type Parameters:
U- a U classT- a T class- Parameters:
source- aIterableobjecttransform- aFunctionobject- Returns:
- a
Iterables.IterableDecoratorobject
-
filter
public static <T> Iterables.IterableDecorator<T,T> filter(Iterable<T> source, Predicate<T> filter)
filter.
- Type Parameters:
T- a T class- Parameters:
source- aIterableobjectfilter- aPredicateobject- Returns:
- a
Iterables.IterableDecoratorobject
-
-