com.mailgun.enums.YesNo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mailgun-java Show documentation
Show all versions of mailgun-java Show documentation
The Mailgun SDK for Java enables Java developers to work with Mailgun API
efficiently.
The newest version!
package com.mailgun.enums;
import com.fasterxml.jackson.annotation.JsonValue;
public enum YesNo implements EnumWithValue {
YES("yes"),
NO("no");
private final String value;
YesNo(String value) {
this.value = value;
}
@JsonValue
@Override
public String getValue() {
return value;
}
public static String getValue(boolean b) {
return b ? YES.value : NO.value;
}
}