Package com.avaje.tests.model.ivo.converter

Source Code of com.avaje.tests.model.ivo.converter.RateTypeConverter

package com.avaje.tests.model.ivo.converter;

import java.math.BigDecimal;

import com.avaje.tests.model.ivo.Rate;

/**
* Converts between Rate and BigDecimal.
*/
public class RateTypeConverter {//implements ScalarTypeConverter<Rate,BigDecimal>{

    public BigDecimal unwrapValue(Rate beanType) {
        return beanType.getValue();
    }

    public Rate wrapValue(BigDecimal scalarType) {       
        return new Rate(scalarType);
    }
   
}
TOP

Related Classes of com.avaje.tests.model.ivo.converter.RateTypeConverter

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.