/*
 * Copyright (C) 2018 Andrew Gegg
 *
 *	This file is part of the Garden Notebook application
 *
 * The Garden Notebook application is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

/*
	WARNING
	This file is NOT generated.
 */

package uk.co.gardennotebook.util;

import javafx.util.StringConverter;

/**
 *	A {@link javafx.util.StringConverter StringConverter} used in connection with {@link SimpleMoney SimpleMoney}.
 * 
 *	@author	Andy Gegg
 *	@version	1.0
 *	@since	1.0
 */
final public class SimpleMoneyStringConverter extends StringConverter<SimpleMoney> {

	@Override
	public String toString(SimpleMoney object)
    {
		SimpleMoney cash = (SimpleMoney)object;
		return cash.toString();
	}

	@Override
	public SimpleMoney fromString(String string)
    {
		return SimpleMoney.parse(string);
	}
	
}
