You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@edgent.apache.org by "Cazen Lee (JIRA)" <ji...@apache.org> on 2016/03/19 03:33:33 UTC
[jira] [Resolved] (QUARKS-18) Split function based upon an
enumeration.
[ https://issues.apache.org/jira/browse/QUARKS-18?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Cazen Lee resolved QUARKS-18.
-----------------------------
Resolution: Fixed
> Split function based upon an enumeration.
> -----------------------------------------
>
> Key: QUARKS-18
> URL: https://issues.apache.org/jira/browse/QUARKS-18
> Project: Quarks
> Issue Type: Improvement
> Components: API
> Reporter: Daniel John Debrunner
> Assignee: Cazen Lee
> Priority: Minor
> Labels: newbie
> Attachments: SplitWithEnum_Screenshot.png
>
>
> An enum based split would be useful.
> Something like:
> <E> List<TStream<T>> split(Class<E> enumClass, Function<T,E> splitter)
> So the stream is split by the enum value with the returned streams in ordinal order.
> This may have the benefit of being self-maintaining, so that if an enum value is added, the returned number of streams changes automatically, but only if given an enum class one can figure out the number of enums.
> Based upon looking at the sample code in QUARKS-16
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)