Interface AssembleMultiple
-
- All Known Subinterfaces:
AssembleMultipleWithQualifier,AssemblePage,AssemblePageWithQualifier
public interface AssembleMultipleAn element of theFluentAssemblerDSL allowing to assemble to multiple DTO in various forms (stream, list, set, array, ...).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <D> D[]toArrayOf(Class<D> dtoClass)Assembles to an array of DTO.<D,C extends Collection<D>>
CtoCollectionOf(Class<D> dtoClass, Supplier<C> collectionSupplier)Assembles to the suppliedCollection.<D> List<D>toListOf(Class<D> dtoClass)Assembles to aListof DTO.<D> Set<D>toSetOf(Class<D> dtoClass)Assembles to aSetof DTO.<D> Slice<D>toSliceOf(Class<D> dtoClass)Assembles to aSliceof DTO.<D> Stream<D>toStreamOf(Class<D> dtoClass)Assembles to aStreamof DTO.
-
-
-
Method Detail
-
toStreamOf
<D> Stream<D> toStreamOf(Class<D> dtoClass)
Assembles to aStreamof DTO.- Type Parameters:
D- the type of the DTO.- Parameters:
dtoClass- the DTO class to assemble.- Returns:
- the list of DTO.
-
toCollectionOf
<D,C extends Collection<D>> C toCollectionOf(Class<D> dtoClass, Supplier<C> collectionSupplier)
Assembles to the suppliedCollection.- Type Parameters:
D- the type of the DTO.C- the type of the collection.- Parameters:
dtoClass- the DTO class to assemble.collectionSupplier- the provider of a (preferably empty) collection.- Returns:
- the collection of DTO.
-
toListOf
<D> List<D> toListOf(Class<D> dtoClass)
Assembles to aListof DTO.- Type Parameters:
D- the type of the DTO.- Parameters:
dtoClass- the DTO class to assemble.- Returns:
- the list of DTO.
-
toSetOf
<D> Set<D> toSetOf(Class<D> dtoClass)
Assembles to aSetof DTO.- Type Parameters:
D- the type of the DTO.- Parameters:
dtoClass- the DTO class to assemble.- Returns:
- the set of DTO.
-
toSliceOf
<D> Slice<D> toSliceOf(Class<D> dtoClass)
Assembles to aSliceof DTO.- Type Parameters:
D- the type of the DTO.- Parameters:
dtoClass- the DTO class to assemble- Returns:
- the list of DTO.
-
toArrayOf
<D> D[] toArrayOf(Class<D> dtoClass)
Assembles to an array of DTO.- Type Parameters:
D- the type of the DTO.- Parameters:
dtoClass- the DTO class to assemble.- Returns:
- the array of DTO.
-
-