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());
}
}