Package be.gaudry.model.disposition
Enum Class EPageCounterFormat
- All Implemented Interfaces:
Serializable
,Comparable<EPageCounterFormat>
,Constable
Possibles representations of a page numbering format.
Provided by the broldev.core.model project.
- Since:
- 1.0 Jul 2, 2008, broldev.core.model 0.0.1-SNAPSHOT dependency
- Version:
- 1.0 Jul 2, 2008
- Author:
- Steph GAUDRY
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic EPageCounterFormat
fromInt(int key)
int
getValue()
The value is a numeric representation of thisEPageCounterFormat
, independent of theEnum.ordinal()
information.toString()
String representation of this instance, to display.static EPageCounterFormat
Returns the enum constant of this class with the specified name.static EPageCounterFormat[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
X_DE_Y
x de y -
X_OF_Y
x of y -
X_SLASH_Y
x/y -
X_MINUS_Y
x-y
-
-
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
-
getValue
public int getValue()The value is a numeric representation of thisEPageCounterFormat
, independent of theEnum.ordinal()
information.- Returns:
- the value
-
toString
String representation of this instance, to display.- Overrides:
toString
in classEnum<EPageCounterFormat>
-
fromInt
- Parameters:
key
- numeric representation of theEPageCounterFormat
,value given by thegetValue()
method.- Returns:
- the matching
EPageCounterFormat
, orX_DE_Y
in case of wrong parameter
-