Package org.jeasy.batch.core.filter
Class EndsWithStringRecordFilter
- java.lang.Object
-
- org.jeasy.batch.core.filter.EndsWithStringRecordFilter
-
- All Implemented Interfaces:
RecordFilter<java.lang.String>
,RecordProcessor<java.lang.String,java.lang.String>
public class EndsWithStringRecordFilter extends java.lang.Object implements RecordFilter<java.lang.String>
Filter string records ending with one of the given suffixes.- Author:
- Mahmoud Ben Hassine ([email protected])
-
-
Constructor Summary
Constructors Constructor Description EndsWithStringRecordFilter(java.lang.String... suffixes)
Create a newEndsWithStringRecordFilter
.
-
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
-
EndsWithStringRecordFilter
public EndsWithStringRecordFilter(java.lang.String... suffixes)
Create a newEndsWithStringRecordFilter
.- Parameters:
suffixes
- suffixes 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:RecordFilter
Filter a record.- Specified by:
processRecord
in interfaceRecordFilter<java.lang.String>
- Specified by:
processRecord
in 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
null
if the record should be filtered
-
-