[New] Added ServiceResult.isNok()
This commit is contained in:
parent
dbc6f702f1
commit
473c852ea6
|
@ -64,6 +64,13 @@ public class ServiceResult implements Serializable {
|
||||||
return this.state == ServiceResultState.SUCCESS;
|
return this.state == ServiceResultState.SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return true if the state is NOT {@link ServiceResultState#SUCCESS}
|
||||||
|
*/
|
||||||
|
public boolean isNok() {
|
||||||
|
return this.state != ServiceResultState.SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the state
|
* @return the state
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue