All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ryantenney.passkit4j.model.TextAlignment Maven / Gradle / Ivy

There is a newer version: 2.0.1
Show newest version
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