public enum Currency extends Enum<Currency>
Clase Java para Currency.
El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
<simpleType name="Currency">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="EUR"/>
<enumeration value="GBP"/>
<enumeration value="BRL"/>
<enumeration value="ARS"/>
<enumeration value="MXN"/>
<enumeration value="CLP"/>
<enumeration value="PEN"/>
<enumeration value="VEF"/>
<enumeration value="COP"/>
<enumeration value="USD"/>
<enumeration value="NIO"/>
<enumeration value="GTQ"/>
<enumeration value="SVC"/>
<enumeration value="PAB"/>
<enumeration value="UYU"/>
<enumeration value="MYR"/>
<enumeration value="NOK"/>
<enumeration value="HUF"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
ARS |
BRL |
CLP |
COP |
EUR |
GBP |
GTQ |
HUF |
MXN |
MYR |
NIO |
NOK |
PAB |
PEN |
SVC |
USD |
UYU |
VEF |
| Modifier and Type | Method and Description |
|---|---|
static Currency |
fromValue(String v) |
String |
value() |
static Currency |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Currency[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Currency EUR
public static final Currency GBP
public static final Currency BRL
public static final Currency ARS
public static final Currency MXN
public static final Currency CLP
public static final Currency PEN
public static final Currency VEF
public static final Currency COP
public static final Currency USD
public static final Currency NIO
public static final Currency GTQ
public static final Currency SVC
public static final Currency PAB
public static final Currency UYU
public static final Currency MYR
public static final Currency NOK
public static final Currency HUF
public static Currency[] values()
for (Currency c : Currency.values()) System.out.println(c);
public static Currency valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String value()
Copyright © 2015. All Rights Reserved.