Package org.archfirst.common.quantity

Examples of org.archfirst.common.quantity.Percentage


public class PercentageDeserializer extends JsonDeserializer<Percentage>{

    @Override
    public Percentage deserialize(JsonParser jp, DeserializationContext ctx)
            throws IOException, JsonProcessingException {
        return new Percentage(jp.getDecimalValue(), BigDecimal.ONE, 2);
    }
View Full Code Here


     * @return
     */
    @Transient
    public Percentage getPercentage(Money aThat, int fractionalDigits) {
        checkCurrenciesMatch(aThat);
        return new Percentage(amount, aThat.getAmount(), fractionalDigits);
    }
View Full Code Here

TOP

Related Classes of org.archfirst.common.quantity.Percentage

Copyright © 2018 www.massapicom. 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.