Examples of MoneyValueFacet


Examples of org.apache.isis.core.progmodel.facets.value.money.MoneyValueFacet

        final FloatingPointValueFacet floatValueFacet = specification.getFacet(FloatingPointValueFacet.class);
        if (floatValueFacet != null) {
            return floatValueFacet.floatValue(value).doubleValue();
        }

        final MoneyValueFacet moneyValueFacet = specification.getFacet(MoneyValueFacet.class);
        if (moneyValueFacet != null) {
            return moneyValueFacet.getAmount(value);
        }

        return 0.0;
    }
View Full Code Here

Examples of org.apache.isis.core.progmodel.facets.value.money.MoneyValueFacet

        final FloatingPointValueFacet floatValueFacet = specification.getFacet(FloatingPointValueFacet.class);
        if (floatValueFacet != null) {
            return floatValueFacet.floatValue(value).doubleValue();
        }

        final MoneyValueFacet moneyValueFacet = specification.getFacet(MoneyValueFacet.class);
        if (moneyValueFacet != null) {
            return moneyValueFacet.getAmount(value);
        }

        return 0.0;
    }
View Full Code Here
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.