Package nl.zerofiftyit.mdepunit.model
Class NegateNext
- java.lang.Object
-
- nl.zerofiftyit.mdepunit.model.NegateNext
-
public final class NegateNext extends Object
Represents a utility class for managing a "negate next" boolean flag. This flag is often used to dictate whether the next operation should be negated. The class provides methods to toggle the state of the flag and query its current value.The state of this flag can be changed dynamically using the provided
Instances of this class are designed for simple and stateless operations around the "negate next" flag.applyNegateNextmethod. This functionality is commonly used in scenarios where conditional logic needs to be applied based on whether negation is enabled or disabled.
-
-
Constructor Summary
Constructors Constructor Description NegateNext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyNegateNext()Toggles the "negate next" flag, reversing its current state.booleanisNegateNext()Checks if the "negate next" flag is currently set.StringtoString()Returns a string representation of the "NegateNext" object, including the current state of the "negateNext" flag.
-
-
-
Method Detail
-
applyNegateNext
public void applyNegateNext()
Toggles the "negate next" flag, reversing its current state. If the flag is currently set totrue, invoking this method will change it tofalse, and vice versa. This method is typically used as part of a sequence of operations where subsequent behavior depends on whether a negation is applied.
-
isNegateNext
public boolean isNegateNext()
Checks if the "negate next" flag is currently set.- Returns:
- true if the "negate next" flag is set, false otherwise
-
toString
public String toString()
Returns a string representation of the "NegateNext" object, including the current state of the "negateNext" flag.
-
-