com.ryantenney.passkit4j.model.TextAlignment Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of passkit4j Show documentation
Show all versions of passkit4j Show documentation
Passbook Library for Java
package com.ryantenney.passkit4j.model;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonValue;
public enum TextAlignment {
LEFT("PKTextAlignmentLeft"),
CENTER("PKTextAlignmentCenter"),
RIGHT("PKTextAlignmentRight"),
JUSTIFIED("PKTextAlignmentJustified"),
NATURAL("PKTextAlignmentNatural");
private static final Map lookup;
static {
final Map _lookup = new HashMap();
for (TextAlignment entry : TextAlignment.values()) {
_lookup.put(entry.value(), entry);
}
lookup = Collections.unmodifiableMap(_lookup);
}
private final String value;
private TextAlignment(final String value) {
this.value = value;
}
@JsonValue
public String value() {
return this.value;
}
@JsonValue
public static TextAlignment forValue(String value) {
return lookup.get(value);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy