
me.sniggle.matemonkey4j.api.model.Quantity Maven / Gradle / Ivy
The newest version!
package me.sniggle.matemonkey4j.api.model;
import com.fasterxml.jackson.annotation.JsonValue;
/**
* @author tuxbox, sniggle.me
*/
public enum Quantity {
CRATE("crate"),
PIECE("piece"),
KILOGRAMM("kg");
private String quantity;
Quantity(String quantity) {
this.quantity = quantity;
}
/**
*
* @return the JSON string representation of the allowed quantities
*/
@JsonValue
public String quantity() {
return quantity;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy