Package org.eclipse.sisu.space
Class Tokens
java.lang.Object
org.eclipse.sisu.space.Tokens
Utility methods for dealing with tokens.
-
Method Summary
Modifier and TypeMethodDescriptionsplitByComma
(String text) Lazily splits the given string into whitespace-trimmed tokens, using comma as the token separator.splitByStar
(String text) Lazily splits the given string into non-trimmed tokens, using star as the token separator.
-
Method Details
-
splitByComma
Lazily splits the given string into whitespace-trimmed tokens, using comma as the token separator.- Parameters:
text
- The text to split into tokens- Returns:
- Sequence of comma-separated tokens
-
splitByStar
Lazily splits the given string into non-trimmed tokens, using star as the token separator.- Parameters:
text
- The text to split into tokens- Returns:
- Sequence of star-separated tokens
-