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_411
TJSAMP_420
TJSAMP_422
TJSAMP_440
TJSAMP_444
TJSAMP_GRAY
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TJSAMP
fromInt(int val)
int
intValue()
static TJSAMP
valueOf(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.
-
-
-
Enum Constant Detail
-
TJSAMP_444
public static final TJSAMP TJSAMP_444
-
TJSAMP_422
public static final TJSAMP TJSAMP_422
-
TJSAMP_420
public static final TJSAMP TJSAMP_420
-
TJSAMP_GRAY
public static final TJSAMP TJSAMP_GRAY
-
TJSAMP_440
public static final TJSAMP TJSAMP_440
-
TJSAMP_411
public static final TJSAMP TJSAMP_411
-
-
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:
intValue
in interfacejnr.ffi.util.EnumMapper.IntegerEnum
-
fromInt
public static TJSAMP fromInt(int val)
-
-