Interface AssembleMultiple

    • Method Detail

      • toStreamOf

        <D> Stream<D> toStreamOf​(Class<D> dtoClass)
        Assembles to a Stream of 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 supplied Collection.
        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 a List of 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 a Set of 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 a Slice of 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.