@PublicApi public class IteratorDataHolder extends Object implements ImportDataHolder
Constructor and Description |
---|
IteratorDataHolder(Supplier<Iterator<DataEntry>> iteratorSupplier) |
Modifier and Type | Method and Description |
---|---|
String |
asPrintableString(boolean includeData) |
boolean |
dataToImport()
Used to indicate if data exist to import.
|
boolean |
hasNext()
Return true if a call to nextEntry will return more data.
|
DataEntry |
nextEntry()
Reads an object entry.
|
int |
numberOfEntries()
Returns the number of entries that this data holder contains
|
ExternalDataParseResult |
parsedResult()
Was all external data parsed? This is a way to inform the import that the data holder may not be complete.
|
public String asPrintableString(boolean includeData)
asPrintableString
in interface ImportDataHolder
public boolean hasNext()
ImportDataHolder
hasNext
in interface ImportDataHolder
public DataEntry nextEntry()
ImportDataHolder
nextEntry
in interface ImportDataHolder
null
to indicate that all data has been processed.
An empty list will be treated as end of data and no more data will be read (the same as with null)public int numberOfEntries()
ImportDataHolder
numberOfEntries
in interface ImportDataHolder
public boolean dataToImport()
ImportDataHolder
dataToImport
in interface ImportDataHolder
public ExternalDataParseResult parsedResult()
ImportDataHolder
parsedResult
in interface ImportDataHolder
Copyright © 2024 Atlassian. All rights reserved.