Package appeng.api.stacks
Enum Class AmountFormat
- All Implemented Interfaces:
Serializable
,Comparable<AmountFormat>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDisplay the full amount.Display the summary with the regular font, for example "1.23K" instead of 1234.Display the summary with a large font, for example "1.2K" instead of 1234. -
Method Summary
Modifier and TypeMethodDescriptionstatic AmountFormat
Returns the enum constant of this class with the specified name.static AmountFormat[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FULL
Display the full amount. -
SLOT
Display the summary with the regular font, for example "1.23K" instead of 1234. This should fit in a slot. -
SLOT_LARGE_FONT
Display the summary with a large font, for example "1.2K" instead of 1234. This should also fit in a slot. Should be shorter thanSLOT
as the font is larger.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-