Package adams.data.statistics
Enum SPCUtils.Chart
- java.lang.Object
-
- java.lang.Enum<SPCUtils.Chart>
-
- adams.data.statistics.SPCUtils.Chart
-
- All Implemented Interfaces:
EnumWithCustomDisplay<SPCUtils.Chart>
,EnumWithCustomParsing<SPCUtils.Chart>
,Serializable
,Comparable<SPCUtils.Chart>
- Enclosing class:
- SPCUtils
public static enum SPCUtils.Chart extends Enum<SPCUtils.Chart> implements EnumWithCustomDisplay<SPCUtils.Chart>
Enum for the chart type.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SPCUtils.Chart
parse(String s)
Parses the given string and returns the associated enum.String
toDisplay()
Returns the display string.String
toRaw()
Returns the raw enum string.String
toString()
Returns the displays string.static String
toString(AbstractOption option, Object object)
Returns the enum as string.static SPCUtils.Chart
valueOf(AbstractOption option, String str)
Returns an enum generated from the string.static SPCUtils.Chart
valueOf(String name)
Returns the enum constant of this type with the specified name.static SPCUtils.Chart[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
X_BAR_R_X
public static final SPCUtils.Chart X_BAR_R_X
-
X_BAR_R_R
public static final SPCUtils.Chart X_BAR_R_R
-
X_BAR_S_X
public static final SPCUtils.Chart X_BAR_S_X
-
X_BAR_S_S
public static final SPCUtils.Chart X_BAR_S_S
-
X_MR_X
public static final SPCUtils.Chart X_MR_X
-
X_MR_MR
public static final SPCUtils.Chart X_MR_MR
-
P
public static final SPCUtils.Chart P
-
NP
public static final SPCUtils.Chart NP
-
C
public static final SPCUtils.Chart C
-
U
public static final SPCUtils.Chart U
-
EWMA
public static final SPCUtils.Chart EWMA
-
CUSUM
public static final SPCUtils.Chart CUSUM
-
THREE_WAY
public static final SPCUtils.Chart THREE_WAY
-
TIME_SERIES
public static final SPCUtils.Chart TIME_SERIES
-
-
Method Detail
-
values
public static SPCUtils.Chart[] 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 (SPCUtils.Chart c : SPCUtils.Chart.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SPCUtils.Chart 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
-
toDisplay
public String toDisplay()
Returns the display string.- Specified by:
toDisplay
in interfaceEnumWithCustomDisplay<SPCUtils.Chart>
- Returns:
- the display string
-
toRaw
public String toRaw()
Returns the raw enum string.- Specified by:
toRaw
in interfaceEnumWithCustomDisplay<SPCUtils.Chart>
- Returns:
- the raw enum string
-
parse
public SPCUtils.Chart parse(String s)
Parses the given string and returns the associated enum.- Specified by:
parse
in interfaceEnumWithCustomParsing<SPCUtils.Chart>
- Parameters:
s
- the string to parse- Returns:
- the enum or null if not found
-
toString
public String toString()
Returns the displays string.- Overrides:
toString
in classEnum<SPCUtils.Chart>
- Returns:
- the display string
-
toString
public static String toString(AbstractOption option, Object object)
Returns the enum as string.- Parameters:
option
- the current optionobject
- the enum object to convert- Returns:
- the generated string
-
valueOf
public static SPCUtils.Chart valueOf(AbstractOption option, String str)
Returns an enum generated from the string.- Parameters:
option
- the current optionstr
- the string to convert to an enum- Returns:
- the generated enum or null in case of error
-
-