All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tecacet.util.conversion.CurrencyConverter Maven / Gradle / Ivy

Go to download

JFlat's purpose is to convert flat files to Java Beans and vice versa. Some supported formats are CSV, fixed-width, arbitrary delimiters, and excel files. There are also tools to generate Java Beans to/from JDBC and Swing tables. JFlat is highly extensible and can be adopted to support additional formats.

The newest version!
package com.tecacet.util.conversion;

import java.util.Currency;

/**
 * Converts a currency code to a Currency object
 */
public class CurrencyConverter implements DataConverter {

   
	@Override
	public Currency convert(String from) {
		if (from == null) {
            return null;
        }
        return Currency.getInstance(from);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy