Package org.jeasy.batch.core.record
Class GenericRecord<P>
- java.lang.Object
-
- org.jeasy.batch.core.record.GenericRecord<P>
-
- All Implemented Interfaces:
Record<P>
- Direct Known Subclasses:
FileRecord,StringRecord
public class GenericRecord<P> extends java.lang.Object implements Record<P>
General purpose record implementation.- Author:
- Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
-
-
Constructor Summary
Constructors Constructor Description GenericRecord(Header header, P payload)Create a newGenericRecord.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HeadergetHeader()Return the record's header.PgetPayload()Return the record's payload.java.lang.StringtoString()
-
-
-
Constructor Detail
-
GenericRecord
public GenericRecord(Header header, P payload)
Create a newGenericRecord.- Parameters:
header- the record headerpayload- the record payload
-
-
Method Detail
-
getHeader
public Header getHeader()
Description copied from interface:RecordReturn the record's header.
-
getPayload
public P getPayload()
Description copied from interface:RecordReturn the record's payload.- Specified by:
getPayloadin interfaceRecord<P>- Returns:
- the record's payload.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-