T - The type of the concatenated Predicatespublic interface Proposition<T extends Predicate> extends Predicate, java.lang.Iterable<T>
Predicates,
e.g. a conjunctive or disjunctive rule, must implement.| Modifier and Type | Method and Description |
|---|---|
default @NotNull java.util.Set<T> |
getAllMatches(@NotNull AttributeMap attributeMap)
Returns a set that contains all predicates of the proposition that match a specific example
(given as an
AttributeMap). |
default T |
getFirstMatch(@NotNull AttributeMap attributeMap)
Returns the first predicate of the proposition that matches a specific example (given as an
AttributeMap), if such a predicate is part of the proposition. |
boolean |
isConjunctive()
Returns, whether the proposition is conjunctive, or not.
|
default boolean |
isDisjunctive()
Returns, whether the proposition is disjunctive, or not.
|
default boolean |
test(@NotNull AttributeMap attributeMap) |
boolean isConjunctive()
default boolean isDisjunctive()
@Nullable default T getFirstMatch(@NotNull @NotNull AttributeMap attributeMap)
AttributeMap), if such a predicate is part of the proposition.attributeMap - The example to be checked@NotNull default @NotNull java.util.Set<T> getAllMatches(@NotNull @NotNull AttributeMap attributeMap)
AttributeMap).attributeMap - The example to be checkeddefault boolean test(@NotNull
@NotNull AttributeMap attributeMap)
test in interface java.util.function.Predicate<AttributeMap>