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

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

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

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

import java.util.List;

public class DomainCharacterRule extends AbstractColumnRule {

    private final List domains;

    public DomainCharacterRule(int position, List domains) {
        super(position);
        this.domains = domains;
    }

    @Override
    public boolean isValid(JFileColumn fileColumn) {
        return domains.contains(fileColumn.getCharacter());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy