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

com.jonpereiradev.jfile.reader.rule.column.MinBigIntegerRule Maven / Gradle / Ivy

package com.jonpereiradev.jfile.reader.rule.column;

import com.jonpereiradev.jfile.reader.file.JFileColumn;

import java.math.BigInteger;

public class MinBigIntegerRule extends AbstractColumnRule {

    private final BigInteger min;

    public MinBigIntegerRule(int position, BigInteger min) {
        super(position);
        this.min = min;
    }

    @Override
    public boolean isValid(JFileColumn fileColumn) {
        return fileColumn.getBigInteger().compareTo(min) >= 0;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy