Uploaded image for project: 'Edgent'
  1. Edgent
  2. EDGENT-18

Split function based upon an enumeration.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • None
    • API

    Description

      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

      Attachments

        1. SplitWithEnum_Screenshot.png
          194 kB
          Cazen Lee

        Issue Links

          Activity

            People

              cazen Cazen Lee
              djd Daniel John Debrunner
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: