Class Not
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.PositionBasedFilter
,java.util.function.Predicate
,kotlin.Function
,kotlin.Function1
public final class Not<P extends Position<P>> implements PositionBasedFilter<P>
Negates the positionBasedFilter's test.
-
-
Field Summary
Fields Modifier and Type Field Description private final PositionBasedFilter<P>
positionBasedFilter
-
Constructor Summary
Constructors Constructor Description Not(PositionBasedFilter<P> positionBasedFilter)
-
Method Summary
Modifier and Type Method Description final PositionBasedFilter<P>
getPositionBasedFilter()
Boolean
contains(P position)
Returns true if positionBasedFilter is not satisfied. -
-
Constructor Detail
-
Not
Not(PositionBasedFilter<P> positionBasedFilter)
- Parameters:
positionBasedFilter
- the filter to be negated.
-
-
Method Detail
-
getPositionBasedFilter
final PositionBasedFilter<P> getPositionBasedFilter()
-
contains
Boolean contains(P position)
Returns true if positionBasedFilter is not satisfied.
-
-
-
-