@@ -0,0 +1,1706 @@
+package org.textfiledatatools.core.filter;%0A%0Aimport org.textfiledatatools.core.Record;%0Aimport org.textfiledatatools.util.NumberComparisonType;%0A%0A/**%0A * @author Mathias Kalb%0A * @since 0.1%0A */%0Apublic class RecordIdFilter implements RecordFilter%3CRecord%3E %7B%0A%0A    protected final NumberComparisonType numberComparisonType;%0A    protected final long compareRecordId;%0A%0A    public RecordIdFilter(NumberComparisonType numberComparisonType, long compareRecordId) %7B%0A        this.numberComparisonType = numberComparisonType;%0A        this.compareRecordId = compareRecordId;%0A    %7D%0A%0A    public static RecordIdFilter equalTo(long recordId) %7B%0A        return new RecordIdFilter(NumberComparisonType.EQUAL_TO, recordId);%0A    %7D%0A%0A    public static RecordIdFilter notEqualTo(long recordId) %7B%0A        return new RecordIdFilter(NumberComparisonType.NOT_EQUAL_TO, recordId);%0A    %7D%0A%0A    public static RecordIdFilter lessThan(long recordId) %7B%0A        return new RecordIdFilter(NumberComparisonType.LESS_THAN, recordId);%0A    %7D%0A%0A    public static RecordIdFilter lessThanOrEqualTo(long recordId) %7B%0A        return new RecordIdFilter(NumberComparisonType.LESS_THAN_OR_EQUAL_TO, recordId);%0A    %7D%0A%0A    public static RecordIdFilter greaterThanOrEqualTo(long recordId) %7B%0A        return new RecordIdFilter(NumberComparisonType.GREATER_THAN_OR_EQUAL_TO, recordId);%0A    %7D%0A%0A    public static RecordIdFilter greaterThan(long recordId) %7B%0A        return new RecordIdFilter(NumberComparisonType.GREATER_THAN, recordId);%0A    %7D%0A%0A    @Override%0A    public boolean isValid(Record record) %7B%0A        return (record.getRecordId() != null)%0A                && NumberComparisonType.compareLong(record.getRecordId(), numberComparisonType, compareRecordId);%0A    %7D%0A%0A%7D%0A

Add RecordIdFilter