Class Condition.Result<U>
java.lang.Object
net.lucypoulton.squirtgun.command.condition.Condition.Result<U>
- Type Parameters:
U- the output type of the test
- Enclosing interface:
- Condition<T extends PermissionHolder,
U extends PermissionHolder>
The result of a test.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetError()Gets the error, if any, that this test encountered, When the test has passed, this may be null.Gets the result of the test.final booleanWhether the test failed - inverse ofisSuccessful().booleanWhether the test passed.
-
Constructor Details
-
Result
-
-
Method Details
-
isSuccessful
public boolean isSuccessful()Whether the test passed. -
isFailure
public final boolean isFailure()Whether the test failed - inverse ofisSuccessful(). -
getResult
Gets the result of the test. When the test has failed, this may be null. -
getError
Gets the error, if any, that this test encountered, When the test has passed, this may be null.
-