And

data class And<P : Position<P>>(val filterA: Filter<P>, val filterB: Filter<P>) : Filter<P>

Check if both filterA and filterB are satisfied.

Parameters

filterA

the first filter.

filterB

the second filter.

Constructors

Link copied to clipboard
fun <P : Position<P>> And(filterA: Filter<P>, filterB: Filter<P>)

Functions

Link copied to clipboard
open fun and(p0: Predicate<in P>): Predicate<P>
Link copied to clipboard
open operator override fun contains(position: P): Boolean

Returns true if both filterA and filterB are satisfied.

Link copied to clipboard
open operator override fun invoke(position: P): Boolean

Checks if the position is inside the shape.

Link copied to clipboard
open fun negate(): Predicate<P>
Link copied to clipboard
open fun or(p0: Predicate<in P>): Predicate<P>
Link copied to clipboard
open override fun test(position: P): Boolean

Checks if the position is inside the shape.

Properties

Link copied to clipboard
val filterA: Filter<P>
Link copied to clipboard
val filterB: Filter<P>