Enum PositionStatus
- All Implemented Interfaces:
Serializable,Comparable<PositionStatus>,java.lang.constant.Constable
Position status.
- Since:
- 2.5
- Author:
- Michael Heuer
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCertain position status,=.Greater than position status,>.Less than position status,<.Uncertain position status,~.Unknown position status,? -
Method Summary
Modifier and TypeMethodDescriptionstatic PositionStatusfromDescription(String description) Return the position status with the specified description.static PositionStatusfromSymbol(String symbol) Return the position status with the specified symbol.Return the description for this position status.Return the symbol for this position status.static PositionStatusReturns the enum constant of this type with the specified name.static PositionStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CERTAIN
Certain position status,=. -
UNCERTAIN
Uncertain position status,~. -
LESS_THAN
Less than position status,<. -
GREATER_THAN
Greater than position status,>. -
UNKNOWN
Unknown position status,?.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
getSymbol
Return the symbol for this position status.- Returns:
- the symbol for this position status
-
getDescription
Return the description for this position status.- Returns:
- the description for this position status
-
fromSymbol
Return the position status with the specified symbol.- Parameters:
symbol- symbol, must not be null- Returns:
- the position status with the specified symbol
-
fromDescription
Return the position status with the specified description.- Parameters:
description- description, must not be null- Returns:
- the position status with the specified description
-