com.breuninger.boot.status.domain.Status Maven / Gradle / Ivy
package com.breuninger.boot.status.domain;
public enum Status {
OK, WARNING, ERROR;
public static Status plus(final Status first, final Status second) {
if (first == ERROR || second == ERROR) {
return ERROR;
}
if (first == WARNING || second == WARNING) {
return WARNING;
}
return first;
}
}