Class Iterables
java.lang.Object
com.ulisesbocchio.jasyptspringboot.util.Iterables
Iterables class.
- Version:
- $Id: $Id
- Author:
- Sergio.U.Bocchio
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <U,T> Iterables.IterableDecorator<U, T> decorate.static <T> Iterables.IterableDecorator<T,T> filter.static <U,T> Iterables.IterableDecorator<U, T> transform.
-
Constructor Details
-
Iterables
public Iterables()
-
-
Method Details
-
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
filter.
- Type Parameters:
T- a T class- Parameters:
source- aIterableobjectfilter- aPredicateobject- Returns:
- a
Iterables.IterableDecoratorobject
-