public static List<String> tokenize(CharSequence self, Character token) {
        return tokenize(self, token.toString());
    }
public static List < String > tokenize ( CharSequence self , Character token ) { return tokenize ( self , token . toString ( ) ) ; }
Tokenize a CharSequence based on the given character delimiter.
For example:
<pre class="groovyTestCase">
char pathSep = ':'
assert "/tmp:/usr".tokenize(pathSep) == ["/tmp", "/usr"]
</pre>

@param self  a CharSequence
@param token the delimiter
@return a List of tokens
@see java.util.StringTokenizer#StringTokenizer(String, String)
@since 1.8.2