Serializable
protected static class ValidatorResult.ResultStatus extends Object implements Serializable
Constructor | Description |
---|---|
ResultStatus(boolean valid,
Object result) |
Construct a Result status.
|
ResultStatus(ValidatorResult ignored,
boolean valid,
Object result) |
Deprecated.
Use
ResultStatus(boolean, Object) instead |
Modifier and Type | Method | Description |
---|---|---|
Object |
getResult() |
Gets the result returned by a validation method.
|
boolean |
isValid() |
Tests whether or not the validation passed.
|
void |
setResult(Object result) |
Sets the result returned by a validation method.
|
void |
setValid(boolean valid) |
Sets whether or not the validation passed.
|
public ResultStatus(boolean valid, Object result)
valid
- Whether the validator passed or failed.result
- Value returned by the validator.@Deprecated public ResultStatus(ValidatorResult ignored, boolean valid, Object result)
ResultStatus(boolean, Object)
insteadignored
- ignored by this methodvalid
- Whether the validator passed or failed.result
- Value returned by the validator.public boolean isValid()
public void setValid(boolean valid)
valid
- Whether the validation passed.public Object getResult()
public void setResult(Object result)
result
- The value returned by the validation.Copyright © 2002–2018. All rights reserved.