public class SimpleValidation extends Object implements Validation
Modifier and Type | Field and Description |
---|---|
static SimpleValidation |
FAILED
Constant simple validation indicating that the validation failed
(
passed() returns false ). |
static SimpleValidation |
PASSED
Constant simple validation indicating that the validation passed successfully
(
passed() returns true ). |
Constructor and Description |
---|
SimpleValidation(boolean passed)
Create a simple validation with a given boolean value, indicating
whether the corresponding solution passed validation.
|
Modifier and Type | Method and Description |
---|---|
boolean |
passed()
Get the boolean value specified at construction, indicating
whether the corresponding solution passed validation.
|
String |
toString()
Get a string representation of the validation object.
|
public static final SimpleValidation PASSED
passed()
returns true
).public static final SimpleValidation FAILED
passed()
returns false
).public SimpleValidation(boolean passed)
passed
- boolean value, true
if the corresponding solution is validpublic boolean passed()
passed
in interface Validation
true
if the corresponding solution is validCopyright © 2016. All rights reserved.