Package org.jetbrains.mps.util
Interface Condition<T>
-
- All Known Implementing Classes:
InstanceOfCondition
public interface Condition<T>
-
-
Field Summary
Fields Modifier and Type Field Description static Condition
FALSE_CONDITION
static Condition
TRUE_CONDITION
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static <T> Condition<T>
always()
Typed/checked alternative toTRUE_CONDITION
static <T> Condition<T>
asCondition(Predicate<T> predicate)
default Predicate<T>
asPredicate()
boolean
met(T object)
static <T> Condition<T>
never()
Typed/checked alternative toFALSE_CONDITION
-
-
-
Method Detail
-
met
boolean met(T object)
-
always
static <T> Condition<T> always()
Typed/checked alternative toTRUE_CONDITION
-
never
static <T> Condition<T> never()
Typed/checked alternative toFALSE_CONDITION
-
-