You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "John D. Ament (JIRA)" <ji...@apache.org> on 2016/06/19 23:10:06 UTC

[jira] [Closed] (DELTASPIKE-1165) Repositories support returning Stream in addition to List

     [ https://issues.apache.org/jira/browse/DELTASPIKE-1165?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John D. Ament closed DELTASPIKE-1165.
-------------------------------------

> Repositories support returning Stream<E> in addition to List<E>
> ---------------------------------------------------------------
>
>                 Key: DELTASPIKE-1165
>                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-1165
>             Project: DeltaSpike
>          Issue Type: New Feature
>          Components: Data-Module
>    Affects Versions: 1.6.1
>            Reporter: John D. Ament
>            Assignee: John D. Ament
>             Fix For: 1.7.0
>
>
> It's a nice feature that helps make the code look a bit more modern, especially when paired up with Optional<E> support. 
> Since JPA returns List<E> on the query interface, we can just return list.stream() to give back a stream of data, avoiding the caller's need to wrap a stream.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)