PartialSplit extension

Provides extension methods on String that allow partially splitting a String into tokens.

on

Methods

lazySplit(Pattern separatorPattern) Iterable<String>
A version of String.split that returns an Iterable to tokenize the String lazily.
partialSplit(Pattern separatorPattern, int count) List<String>
A version of String.split that limits splitting to return a List of at most count items.