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 ([email protected])
-
-
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 Header
getHeader()
Return the record's header.P
getPayload()
Return the record's payload.java.lang.String
toString()
-
-
-
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:Record
Return the record's header.
-
getPayload
public P getPayload()
Description copied from interface:Record
Return the record's payload.- Specified by:
getPayload
in interfaceRecord<P>
- Returns:
- the record's payload.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-