[New] Added ServiceResult.isNok()

This commit is contained in:
Robert von Burg 2015-06-01 18:03:11 +02:00
parent dbc6f702f1
commit 473c852ea6
1 changed files with 7 additions and 0 deletions

View File

@ -64,6 +64,13 @@ public class ServiceResult implements Serializable {
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
*/