Package uk.ac.ebi.pride.jmztab2.model
Enum MZBoolean
- java.lang.Object
-
- java.lang.Enum<MZBoolean>
-
- uk.ac.ebi.pride.jmztab2.model.MZBoolean
-
- All Implemented Interfaces:
Serializable
,Comparable<MZBoolean>
public enum MZBoolean extends Enum<MZBoolean>
In mzTab, using 0-false, 1-true to express the boolean value.- Since:
- 06/02/13
- Author:
- qingwei
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MZBoolean
findBoolean(String booleanLabel)
Find the MZBoolean for the given string representation.Boolean
toBoolean()
Convert to a native Boolean.String
toString()
static MZBoolean
valueOf(String name)
Returns the enum constant of this type with the specified name.static MZBoolean[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Method Detail
-
values
public static MZBoolean[] 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 (MZBoolean c : MZBoolean.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MZBoolean 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
-
findBoolean
public static MZBoolean findBoolean(String booleanLabel)
Find the MZBoolean for the given string representation.
- Parameters:
booleanLabel
- "0" or "1" which used to define a boolean used in mzTab.- Returns:
- null if can not recognize the boolean label.
-
-