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. This is designed for Java 1.8

There is a newer version: 1.0.0
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