Class And
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.PositionBasedFilter
,java.util.function.Predicate
,kotlin.Function
,kotlin.Function1
public final class And<P extends Position<P>> implements PositionBasedFilter<P>
Check if both positionBasedFilterA and positionBasedFilterB are satisfied.
-
-
Field Summary
Fields Modifier and Type Field Description private final PositionBasedFilter<P>
positionBasedFilterA
private final PositionBasedFilter<P>
positionBasedFilterB
-
Constructor Summary
Constructors Constructor Description And(PositionBasedFilter<P> positionBasedFilterA, PositionBasedFilter<P> positionBasedFilterB)
-
Method Summary
Modifier and Type Method Description final PositionBasedFilter<P>
getPositionBasedFilterA()
final PositionBasedFilter<P>
getPositionBasedFilterB()
Boolean
contains(P position)
Returns true if both positionBasedFilterA and positionBasedFilterB are satisfied. -
-
Constructor Detail
-
And
And(PositionBasedFilter<P> positionBasedFilterA, PositionBasedFilter<P> positionBasedFilterB)
- Parameters:
positionBasedFilterA
- the first filter.positionBasedFilterB
- the second filter.
-
-
Method Detail
-
getPositionBasedFilterA
final PositionBasedFilter<P> getPositionBasedFilterA()
-
getPositionBasedFilterB
final PositionBasedFilter<P> getPositionBasedFilterB()
-
contains
Boolean contains(P position)
Returns true if both positionBasedFilterA and positionBasedFilterB are satisfied.
-
-
-
-