T
- the type of the merged item.public interface MergeAs<T>
FluentAssembler
DSL, allowing to choose the result of merging a
DTO into multiple aggregates (stream, list, set, array, ...).Modifier and Type | Method and Description |
---|---|
T[] |
asArray()
Merge as an array of items.
|
<C extends Collection<T>> |
asCollection(Supplier<C> collectionSupplier)
Merge as a collection of items.
|
List<T> |
asList()
Merge as a list of items.
|
Set<T> |
asSet()
Merge as a set of items.
|
Slice<T> |
asSlice()
Merge as a slice of items.
|
Stream<T> |
asStream()
Merge as a stream of items.
|
<C extends Collection<T>> C asCollection(Supplier<C> collectionSupplier)
C
- the type of the collection of items.collectionSupplier
- the provider of a (preferably empty) collection.T[] asArray()
Copyright © 2013-2018–2019 SeedStack. All rights reserved.