Package org.jeasy.batch.core.filter
Class StartsWithStringRecordFilter
- java.lang.Object
-
- org.jeasy.batch.core.filter.StartsWithStringRecordFilter
-
- All Implemented Interfaces:
RecordFilter<java.lang.String>,RecordProcessor<java.lang.String,java.lang.String>
public class StartsWithStringRecordFilter extends java.lang.Object implements RecordFilter<java.lang.String>
ARecordFilterthat filters string records starting with one of the given prefixes.- Author:
- Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
-
-
Constructor Summary
Constructors Constructor Description StartsWithStringRecordFilter(java.lang.String... prefixes)Create a newStartsWithStringRecordFilter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Record<java.lang.String>processRecord(Record<java.lang.String> record)Filter a record.
-
-
-
Constructor Detail
-
StartsWithStringRecordFilter
public StartsWithStringRecordFilter(java.lang.String... prefixes)
Create a newStartsWithStringRecordFilter.- Parameters:
prefixes- prefixes that cause the record to be filtered.
-
-
Method Detail
-
processRecord
public Record<java.lang.String> processRecord(Record<java.lang.String> record)
Description copied from interface:RecordFilterFilter a record.- Specified by:
processRecordin interfaceRecordFilter<java.lang.String>- Specified by:
processRecordin interfaceRecordProcessor<java.lang.String,java.lang.String>- Parameters:
record- the record to filter.- Returns:
- the input record if it should continue in the pipeline or
nullif the record should be filtered
-
-