*/
public enum StatusCode {
SUCCESS("Success"),
+ CREATED("Created"),
BADREQUEST("Bad Request"),
UNAUTHORIZED("UnAuthorized"),
/**
* Prints the description associated to the code value
*/
+ @Override
public String toString() {
return description;
}
+ public int calculateConsistentHashCode() {
+ if (this.description != null) {
+ return this.description.hashCode();
+ } else {
+ return 0;
+ }
+ }
}