Enum TJSAMP
- java.lang.Object
-
- java.lang.Enum<TJSAMP>
-
- de.digitalcollections.turbojpeg.lib.enums.TJSAMP
-
- All Implemented Interfaces:
Serializable,Comparable<TJSAMP>,jnr.ffi.util.EnumMapper.IntegerEnum
public enum TJSAMP extends Enum<TJSAMP> implements jnr.ffi.util.EnumMapper.IntegerEnum
-
-
Enum Constant Summary
Enum Constants Enum Constant Description TJSAMP_420TJSAMP_422TJSAMP_440TJSAMP_444TJSAMP_GRAY
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TJSAMPfromInt(int val)intintValue()static TJSAMPvalueOf(String name)Returns the enum constant of this type with the specified name.static TJSAMP[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Method Detail
-
values
public static TJSAMP[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TJSAMP c : TJSAMP.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TJSAMP valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
intValue
public int intValue()
- Specified by:
intValuein interfacejnr.ffi.util.EnumMapper.IntegerEnum
-
fromInt
public static TJSAMP fromInt(int val)
-
-