X
- Type of inputpublic final class AlwaysTrueFunc<X> extends Object implements Func<X,Boolean>
You may want to use this decorator when you need a procedure that returns boolean instead of a function:
List<String> list = new LinkedList<>(); new AllOf( new IterableAsBooleans<String>( Collections.emptyList(), new AlwaysTrueFunc<>(list::add) ) ).asValue();
There is no thread-safety guarantee.
Constructor and Description |
---|
AlwaysTrueFunc(Func<X,?> fnc)
Ctor.
|
AlwaysTrueFunc(Proc<X> proc)
Ctor.
|
Copyright © 2017 Cactoos. All rights reserved.