Package es.mdef.gaip_libreria.constantes
Enum Class CuerpoFcse
- All Implemented Interfaces:
Serializable
,Comparable<CuerpoFcse>
,Constable
Enumeración que representa los diferentes cuerpos de fuerzas y servicios de seguridad.
Las opciones incluyen:
- AIRE - Representa el Ejército del Aire y del Espacio.
- TIERRA - Representa el Ejército de Tierra.
- ARMADA - Representa La Armada.
- GC - Representa la Guardia Civil
- CUERPOS_COMUNES - Representa los Cuerpos Comunes.
- CNP - Representa la Policía Nacional.
- EJERCITO_EXTRANJERO - Representa un ejército extranjero
- OTROS
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic CuerpoFcse
Convierte una cadena de texto al valor enum correspondiente.static CuerpoFcse
Returns the enum constant of this class with the specified name.static CuerpoFcse[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AIRE
-
TIERRA
-
ARMADA
-
GC
-
CUERPOS_COMUNES
-
CNP
-
EJERCITO_EXTRANJERO
-
OTROS
-
-
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
-
delValor
Convierte una cadena de texto al valor enum correspondiente. La comparación es insensible a mayúsculas y minúsculas. Devuelve null si no hay correspondencia.- Parameters:
valor
- La cadena de texto que se desea convertir.- Returns:
- El valor de
CuerpoFcse
correspondiente o null si no hay correspondencia.
-