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

org.vfdtech.implementations.MoneyUtils Maven / Gradle / Ivy

Go to download

A utilities service with generic tools implementation. Can be plugged into your java project

There is a newer version: 0.3.5
Show newest version
package org.vfdtech.implementations;

import java.math.BigDecimal;

public class MoneyUtils {
    public static boolean isBetween(BigDecimal amount, BigDecimal lowerBound, BigDecimal upperBound) {
        return amount.compareTo(lowerBound) >= 0 && amount.compareTo(upperBound) <= 0;
    }

    public static boolean isAbove(BigDecimal amount, BigDecimal bigDecimal) {
        return amount.compareTo(bigDecimal) > 0;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy