Package io.jans.as.model.common
Enum ProgrammingLanguage
- java.lang.Object
-
- java.lang.Enum<ProgrammingLanguage>
-
- io.jans.as.model.common.ProgrammingLanguage
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ProgrammingLanguage>
public enum ProgrammingLanguage extends java.lang.Enum<ProgrammingLanguage>
- Version:
- 0.9, 22/02/2013
- Author:
- Yuriy Zabrovarnyy
-
-
Enum Constant Summary
Enum Constants Enum Constant Description JAVA_SCRIPT
PYTHON
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ProgrammingLanguage
fromString(java.lang.String string)
java.lang.String
getValue()
java.lang.String
toString()
static ProgrammingLanguage
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ProgrammingLanguage[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PYTHON
public static final ProgrammingLanguage PYTHON
-
JAVA_SCRIPT
public static final ProgrammingLanguage JAVA_SCRIPT
-
-
Method Detail
-
values
public static ProgrammingLanguage[] 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 (ProgrammingLanguage c : ProgrammingLanguage.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ProgrammingLanguage valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getValue
public java.lang.String getValue()
-
fromString
public static ProgrammingLanguage fromString(java.lang.String string)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<ProgrammingLanguage>
-
-