public interface AssembleMultiple
FluentAssembler
DSL allowing to assemble to multiple DTO in various
forms (stream, list, set, array, ...).Modifier and Type | Method and Description |
---|---|
<D> D[] |
toArrayOf(Class<D> dtoClass)
Assembles to an array of DTO.
|
<D,C extends Collection<D>> |
toCollectionOf(Class<D> dtoClass,
Supplier<C> collectionSupplier)
Assembles to the supplied
Collection . |
<D> List<D> |
toListOf(Class<D> dtoClass)
Assembles to a
List of DTO. |
<D> Set<D> |
toSetOf(Class<D> dtoClass)
Assembles to a
Set of DTO. |
<D> Slice<D> |
toSliceOf(Class<D> dtoClass)
Assembles to a
Slice of DTO. |
<D> Stream<D> |
toStreamOf(Class<D> dtoClass)
Assembles to a
Stream of DTO. |
<D> Stream<D> toStreamOf(Class<D> dtoClass)
Stream
of DTO.D
- the type of the DTO.dtoClass
- the DTO class to assemble.<D,C extends Collection<D>> C toCollectionOf(Class<D> dtoClass, Supplier<C> collectionSupplier)
Collection
.D
- the type of the DTO.C
- the type of the collection.dtoClass
- the DTO class to assemble.collectionSupplier
- the provider of a (preferably empty) collection.<D> List<D> toListOf(Class<D> dtoClass)
List
of DTO.D
- the type of the DTO.dtoClass
- the DTO class to assemble.<D> Set<D> toSetOf(Class<D> dtoClass)
Set
of DTO.D
- the type of the DTO.dtoClass
- the DTO class to assemble.<D> Slice<D> toSliceOf(Class<D> dtoClass)
Slice
of DTO.D
- the type of the DTO.dtoClass
- the DTO class to assemble<D> D[] toArrayOf(Class<D> dtoClass)
D
- the type of the DTO.dtoClass
- the DTO class to assemble.Copyright © 2013-2018–2019 SeedStack. All rights reserved.