Package adams.data.statistics
Enum SPCUtils.Rules
- java.lang.Object
-
- java.lang.Enum<SPCUtils.Rules>
-
- adams.data.statistics.SPCUtils.Rules
-
- All Implemented Interfaces:
EnumWithCustomDisplay<SPCUtils.Rules>
,EnumWithCustomParsing<SPCUtils.Rules>
,Serializable
,Comparable<SPCUtils.Rules>
- Enclosing class:
- SPCUtils
public static enum SPCUtils.Rules extends Enum<SPCUtils.Rules> implements EnumWithCustomDisplay<SPCUtils.Rules>
The type of rules to apply.
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SPCUtils.Rules
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.Rules
valueOf(AbstractOption option, String str)
Returns an enum generated from the string.static SPCUtils.Rules
valueOf(String name)
Returns the enum constant of this type with the specified name.static SPCUtils.Rules[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ONE_BEYOND_THREE_SIGMA
public static final SPCUtils.Rules ONE_BEYOND_THREE_SIGMA
-
TWO_OF_THREE_BEYOND_TWO_SIGMA
public static final SPCUtils.Rules TWO_OF_THREE_BEYOND_TWO_SIGMA
-
FOUR_OF_FIVE_BEYOND_ONE_SIGMA
public static final SPCUtils.Rules FOUR_OF_FIVE_BEYOND_ONE_SIGMA
-
SEVEN_ON_ONE_SIDE
public static final SPCUtils.Rules SEVEN_ON_ONE_SIDE
-
EIGHT_ON_ONE_SIDE
public static final SPCUtils.Rules EIGHT_ON_ONE_SIDE
-
NINE_ON_ONE_SIDE
public static final SPCUtils.Rules NINE_ON_ONE_SIDE
-
SIX_TRENDING
public static final SPCUtils.Rules SIX_TRENDING
-
FOURTEEN_UP_DOWN
public static final SPCUtils.Rules FOURTEEN_UP_DOWN
-
FIFTEEN_BELOW_ONE_SIGMA
public static final SPCUtils.Rules FIFTEEN_BELOW_ONE_SIGMA
-
EIGHT_BEYOND_ONE_SIGMA_BOTH_SIDES
public static final SPCUtils.Rules EIGHT_BEYOND_ONE_SIGMA_BOTH_SIDES
-
-
Method Detail
-
values
public static SPCUtils.Rules[] 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.Rules c : SPCUtils.Rules.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.Rules 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.Rules>
- Returns:
- the display string
-
toRaw
public String toRaw()
Returns the raw enum string.- Specified by:
toRaw
in interfaceEnumWithCustomDisplay<SPCUtils.Rules>
- Returns:
- the raw enum string
-
parse
public SPCUtils.Rules parse(String s)
Parses the given string and returns the associated enum.- Specified by:
parse
in interfaceEnumWithCustomParsing<SPCUtils.Rules>
- 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.Rules>
- 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.Rules 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
-
-