|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.batch.sample.domain.multiline.AggregateItem<T>
public class AggregateItem<T>
A wrapper type for an item that is used by AggregateItemReader
to
identify the start and end of an aggregate record.
AggregateItemReader
Constructor Summary | |
---|---|
AggregateItem(boolean header,
boolean footer)
|
|
AggregateItem(T item)
|
Method Summary | ||
---|---|---|
static
|
getFooter()
|
|
static
|
getHeader()
|
|
T |
getItem()
Accessor for the wrapped item. |
|
boolean |
isFooter()
Responds true if this record is a footer in an aggregate. |
|
boolean |
isHeader()
Responds true if this record is a header in an aggregate. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AggregateItem(T item)
item
- public AggregateItem(boolean header, boolean footer)
Method Detail |
---|
public static final <T> AggregateItem<T> getFooter()
T
- the type of item nominally wrapped
AggregateItem
that is a footer.public static final <T> AggregateItem<T> getHeader()
T
- the type of item nominally wrapped
AggregateItem
that is a header.public T getItem() throws IllegalStateException
IllegalStateException
- if called on a record for which either
isHeader()
or isFooter()
answers true.public boolean isFooter()
public boolean isHeader()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |