de.otto.edison.status.domain.Status Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of edison-core Show documentation
Show all versions of edison-core Show documentation
Core library for all Edison libraries.
package de.otto.edison.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;
}
}