Package org.n52.janmayen
Class MoreIterators
- java.lang.Object
-
- org.n52.janmayen.MoreIterators
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Iterator<String>split(String regex, CharSequence input)Create aIteratorthat is splitting the input usingregex.static Iterator<String>split(Pattern pattern, CharSequence input)Create aIteratorthat is splitting the input usingpattern.
-
-
-
Method Detail
-
split
public static Iterator<String> split(String regex, CharSequence input)
Create aIteratorthat is splitting the input usingregex.- Parameters:
regex- the regexinput- the input string- Returns:
- the iterator
-
split
public static Iterator<String> split(Pattern pattern, CharSequence input)
Create aIteratorthat is splitting the input usingpattern.- Parameters:
pattern- the patterninput- the input string- Returns:
- the iterator
- See Also:
Pattern.splitAsStream(java.lang.CharSequence)
-
-