Code example for Splitter

Methods: split

0
    public String toString() {
        return value;
    } 
 
    public static OverrideCredential parse(final String value) {
        final List<String> values = Lists.newArrayList(OVERRIDE_SPLITTER.split(value));
 
        String remarks = "";
        final Set<UsernamePassword> possibleCredentials;
        if (values.size() < 2) {
            possibleCredentials = Collections.emptySet();
        } else { 
            possibleCredentials = Sets.newLinkedHashSet();
            final String username = values.get(0);
            final String password = values.get(1);
            if (StringUtils.isNotEmpty(username) && StringUtils.isNotEmpty(password)) {
                possibleCredentials.add(new UsernamePassword(username, password));
            } 
 
            if (values.size() > 2) {
Contextual code suggestions in your IDE  Get Codota for Java