T
- the data typepublic class BasicDataLoader<T> extends Object implements DataLoader<T>
DataLoader
.Constructor and Description |
---|
BasicDataLoader(TestContext context,
DataModelDefinition<T> definition,
DataModelSourceFactory factory)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
List<T> |
asList()
Returns the loaded data as a list.
|
Stream<T> |
asStream()
Returns the loaded data as a stream.
|
View<T> |
asView()
Returns the loaded data as a view.
|
GroupLoader<T> |
group(String... terms)
Configures the grouping key of the organizing dataset.
|
DataLoader<T> |
order(Comparator<? super T> comparator)
Configures the sort order of the organizing dataset.
|
DataLoader<T> |
order(String... terms)
Configures the sort order of the organizing dataset.
|
public BasicDataLoader(TestContext context, DataModelDefinition<T> definition, DataModelSourceFactory factory)
context
- the current test contextdefinition
- the target data definitionfactory
- the inputpublic GroupLoader<T> group(String... terms)
DataLoader
Key.group()
.group
in interface DataLoader<T>
terms
- the property name of each key elementKey.group()
public DataLoader<T> order(String... terms)
DataLoader
Key.order()
.order
in interface DataLoader<T>
terms
- the ordering termKey.order()
public DataLoader<T> order(Comparator<? super T> comparator)
DataLoader
order
in interface DataLoader<T>
comparator
- the object comparatorpublic Stream<T> asStream()
DataLoader
asStream
in interface DataLoader<T>
public List<T> asList()
DataLoader
asList
in interface DataLoader<T>
public View<T> asView()
DataLoader
asView
in interface DataLoader<T>
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.