Kactoos

kactoos-jvm / nnl.rocks.kactoos.scalar / And

And

class And : Scalar<Boolean>

Logical conjunction.

This class can be effectively used to iterate through a collection, just like forEach works:

And<String>(
    ProcOf { println(it) },
    IterableOf("Mary", "John", "William", "Napkin")
).value()

There is no thread-safety guarantee.

Parameters

iterable - The encapsulated iterable

See Also

IoCheckedScalar

Since 0.3

Constructors

Name Summary
<init> And(vararg src: KScalar<Boolean>)
And(vararg src: Scalar<Boolean>)And(iterable: Iterable<KScalar<Boolean>>)
Logical conjunction.

Functions

Name Summary
invoke fun invoke(): Boolean
Get value of this Scalar

Companion Object Functions

Name Summary
invoke operator fun <X : Any> invoke(func: Func<X, Boolean>, vararg src: X): And
operator fun <X : Any> invoke(func: Func<X, Boolean>, src: Iterable<X>): And
operator fun <X : Any> invoke(proc: Proc<X>, vararg src: X): And
operator fun <X : Any> invoke(proc: Proc<X>, src: Iterable<X>): And