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

se.l4.commons.serialization.enums.IntegerMappedEnum Maven / Gradle / Ivy

package se.l4.commons.serialization.enums;

/**
 * Interface used to mark {@link Enum}s that can be mapped to and from an int, used together with
 * {@link IntegerMappedTranslator}.
 *
 * @author Andreas Holstenson
 *
 */
public interface IntegerMappedEnum
{
	/**
	 * Get the value that is enum should mapped to.
	 *
	 * @return
	 */
	int getMappedValue();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy