/** * Converts a string containing a '\n'-delimited list of elements to a string list. * * @param text The string containing the '\n'-delimited elements. * @return A list containing the parsed elements. */ public static List<String> toList(String text) { return toList(text, null, LINE_TERMINATOR); }
/** * Converts a string containing a '\n'-delimited list of elements to a string list. * * @param text The string containing the '\n'-delimited elements. * @param list The string list that will receive the parsed elements. If null, a new list is * created. If not null, the list is cleared before adding elements. * @return A list containing the parsed elements. If the input list was not null, that instance * is returned. Otherwise, a newly created list is returned. */ public static List<String> toList(String text, List<String> list) { return toList(text, list, LINE_TERMINATOR); }
/** * Converts a string containing a delimited list of elements to a string list. * * @param text The string containing the delimited elements. * @param delimiter The delimiter that separates the elements in the input string. * @return A list containing the parsed elements. */ public static List<String> toList(String text, String delimiter) { return toList(text, null, delimiter); }
/** * Sets the monitored event. * * @param eventNames The names of one or more events to monitor. Separate multiple event names * with commas. */ public PluginWakeOnMessage(String eventNames) { this.eventNames = StrUtil.toList(eventNames, ","); }
@Override public List<String> getGrantedAuthorities(IUser user) { return StrUtil.toList(mockAuthorities, ","); }
public List<String> getGrantedAuthorities() { return StrUtil.toList(authorities, ","); } }
@Override public List<String> getValues(String propertyName, String instanceName) { List<String> results = null; String result = getValue(propertyName, instanceName); if (result != null && !result.isEmpty()) { results = StrUtil.toList(result); } return results; }
public void setPrecompiled(String fsps) { setPrecompiled(StrUtil.toList(fsps, ",")); }