Package nl.zerofiftyit.mdepunit.dsl
Class Inclusion<T>
- java.lang.Object
-
- nl.zerofiftyit.mdepunit.dsl.Inclusion<T>
-
- Type Parameters:
T- the type of the value associated with the inclusion rule
public final class Inclusion<T> extends Object
Represents an inclusion rule with optional negation logic. The class provides methods for defining an action with the ability to toggle whether the next operation should be negated.
-
-
Constructor Summary
Constructors Constructor Description Inclusion(T value, NegateNext negateNext)Constructs an Inclusion instance with the specified value and negation logic.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tshould()Returns the value associated with this inclusion rule.TshouldNot()Applies negation logic to the subsequent operation and returns the associated value.
-
-
-
Constructor Detail
-
Inclusion
public Inclusion(T value, NegateNext negateNext)
Constructs an Inclusion instance with the specified value and negation logic.- Parameters:
value- the value associated with this inclusion rulenegateNext- the NegateNext instance for managing negation logic
-
-
Method Detail
-
should
public T should()
Returns the value associated with this inclusion rule.- Returns:
- the value of type
Tattached to this inclusion rule
-
shouldNot
public T shouldNot()
Applies negation logic to the subsequent operation and returns the associated value.- Returns:
- the value of type
Tattached to this inclusion rule
-
-