|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.icu.text.CurrencyMetaInfo.CurrencyFilter
public static final class CurrencyMetaInfo.CurrencyFilter
A filter used to select which currency info is returned.
Field Summary | |
---|---|
String |
currency
The currency to filter on. |
long |
from
The from date to filter on (milliseconds). |
String |
region
The region to filter on. |
long |
to
The to date to filter on (milliseconds). |
Method Summary | |
---|---|
static CurrencyMetaInfo.CurrencyFilter |
all()
Returns a filter that accepts all currency data. |
boolean |
equals(CurrencyMetaInfo.CurrencyFilter rhs)
Type-safe override of equals(Object) . |
boolean |
equals(Object rhs)
Overrides equals. |
int |
hashCode()
Overrides hashCode. |
static CurrencyMetaInfo.CurrencyFilter |
now()
Returns a filter that accepts all currencies in use as of the current date. |
static CurrencyMetaInfo.CurrencyFilter |
onCurrency(String currency)
Returns a filter that accepts the given currency. |
static CurrencyMetaInfo.CurrencyFilter |
onDate(Date date)
Returns a filter that accepts all currencies in use on the given date. |
static CurrencyMetaInfo.CurrencyFilter |
onRange(Date from,
Date to)
Returns a filter that accepts all currencies that were in use at some point between the given dates, or if dates are equal, currencies in use on that date. |
static CurrencyMetaInfo.CurrencyFilter |
onRegion(String region)
Returns a filter that accepts all currencies ever used in the given region. |
String |
toString()
Returns a string representing the filter, for debugging. |
CurrencyMetaInfo.CurrencyFilter |
withCurrency(String currency)
Returns a copy of this filter, with the specified currency. |
CurrencyMetaInfo.CurrencyFilter |
withDate(Date date)
Returns a copy of this filter, with from and to set to the given date. |
CurrencyMetaInfo.CurrencyFilter |
withRange(Date from,
Date to)
Returns a copy of this filter, with from and to set to the given dates. |
CurrencyMetaInfo.CurrencyFilter |
withRegion(String region)
Returns a copy of this filter, with the specified region. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final String region
public final String currency
public final long from
public final long to
Method Detail |
---|
public static CurrencyMetaInfo.CurrencyFilter all()
public static CurrencyMetaInfo.CurrencyFilter now()
withDate(Date)
public static CurrencyMetaInfo.CurrencyFilter onRegion(String region)
region
- the region code
withRegion(String)
public static CurrencyMetaInfo.CurrencyFilter onCurrency(String currency)
currency
- the currency code
withCurrency(String)
public static CurrencyMetaInfo.CurrencyFilter onDate(Date date)
date
- the date
withDate(Date)
public static CurrencyMetaInfo.CurrencyFilter onRange(Date from, Date to)
from
- date on or after a currency must have been in useto
- date before which a currency must have been in use, or if equal to from,
the date on which a currency must have been in use
withRange(Date, Date)
public CurrencyMetaInfo.CurrencyFilter withRegion(String region)
region
- the region code
onRegion(String)
public CurrencyMetaInfo.CurrencyFilter withCurrency(String currency)
currency
- the currency code
onCurrency(String)
public CurrencyMetaInfo.CurrencyFilter withDate(Date date)
date
- the date on which the currency must have been in use
onDate(Date)
public CurrencyMetaInfo.CurrencyFilter withRange(Date from, Date to)
from
- date on or after which the currency must have been in useto
- date before which the currency must have been in use
onRange(Date, Date)
public boolean equals(Object rhs)
equals
in class Object
public boolean equals(CurrencyMetaInfo.CurrencyFilter rhs)
equals(Object)
.
rhs
- the currency filter to compare to
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |