/** * Get a {@code CurrencyCode} that corresponds to the given * <a href="http://en.wikipedia.org/wiki/ISO_4217">ISO 4217</a> * alpha-3 code. * * <p> * This method calls {@link #getByCode(String, boolean) getByCode}{@code (code, false)}. * </p> * * @param code * <a href="http://en.wikipedia.org/wiki/ISO_4217">ISO 4217</a> * alpha-3 code. Or {@code "UNDEFINED"} (case insensitive). * * @return * A {@code CurrencyCode} instance, or {@code null} if not found. * * @since 1.13 * * @see #getByCode(String, boolean) */ public static CurrencyCode getByCodeIgnoreCase(String code) { return getByCode(code, false); }
/** * Get a {@code CurrencyCode} that corresponds to the given * <a href="http://en.wikipedia.org/wiki/ISO_4217">ISO 4217</a> * alpha-3 code. * * <p> * This method calls {@link #getByCode(String, boolean) getByCode}{@code (code, false)}. * </p> * * @param code * <a href="http://en.wikipedia.org/wiki/ISO_4217">ISO 4217</a> * alpha-3 code. Or {@code "UNDEFINED"} (case insensitive). * * @return * A {@code CurrencyCode} instance, or {@code null} if not found. * * @since 1.13 * * @see #getByCode(String, boolean) */ public static CurrencyCode getByCodeIgnoreCase(String code) { return getByCode(code, false); }
/** * Get a {@code CurrencyCode} that corresponds to the given * <a href="http://en.wikipedia.org/wiki/ISO_4217">ISO 4217</a> * alpha-3 code. * * <p> * This method calls {@link #getByCode(String, boolean) getByCode}{@code (code, true)}. * Note that the behavior has changed since the version 1.13. In the older versions, * this method was an alias of {@code getByCode(code, false)}. * </p> * * @param code * <a href="http://en.wikipedia.org/wiki/ISO_4217">ISO 4217</a> * alpha-3 code. * When {@code "UNDEFINED"} is given, {@link #UNDEFINED CurrencyCode.UNDEFINED} * is returned. * * @return * A {@code CurrencyCode} instance, or {@code null} if not found. * * @see #getByCode(String, boolean) */ public static CurrencyCode getByCode(String code) { return getByCode(code, true); }
/** * Get a {@code CurrencyCode} that corresponds to the given * <a href="http://en.wikipedia.org/wiki/ISO_4217">ISO 4217</a> * alpha-3 code. * * <p> * This method calls {@link #getByCode(String, boolean) getByCode}{@code (code, true)}. * Note that the behavior has changed since the version 1.13. In the older versions, * this method was an alias of {@code getByCode(code, false)}. * </p> * * @param code * <a href="http://en.wikipedia.org/wiki/ISO_4217">ISO 4217</a> * alpha-3 code. * When {@code "UNDEFINED"} is given, {@link #UNDEFINED CurrencyCode.UNDEFINED} * is returned. * * @return * A {@code CurrencyCode} instance, or {@code null} if not found. * * @see #getByCode(String, boolean) */ public static CurrencyCode getByCode(String code) { return getByCode(code, true); }