Java Code Examples for jodd.util.StringUtil#split()
The following examples show how to use
jodd.util.StringUtil#split() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: EArea.java From DAFramework with MIT License | 5 votes |
public List<Long> getPids() { if (!StringUtil.equals(parentIds, ",0,")) { pids = new ArrayList<>(); parentIds = StringUtil.replace(parentIds, ",0,", ""); String[] pidsStr = StringUtil.split(parentIds, ","); for (String pidStr : pidsStr) { if (StringUtil.isNotBlank(pidStr) && !StringUtil.equals(pidStr, "0")) { pids.add(Long.parseLong(pidStr)); } } return pids; } return new ArrayList<>(); }
Example 2
Source File: EMenu.java From DAFramework with MIT License | 5 votes |
public List<Long> getPids() { if (!StringUtil.equals(parentIds, ",0,")) { pids = new ArrayList<>(); parentIds = StringUtil.replace(parentIds, ",0,", ""); String[] pidsStr = StringUtil.split(parentIds, ","); for (String pidStr : pidsStr) { if (StringUtil.isNotBlank(pidStr) && !StringUtil.equals(pidStr, "0")) { pids.add(Long.parseLong(pidStr)); } } return pids; } return new ArrayList<>(); }
Example 3
Source File: TextUtils.java From DAFramework with MIT License | 5 votes |
public static Long[] parseLongs(String text) { List<Long> randIds = new ArrayList<Long>(); if (text != null) { for (String strBID : StringUtil.split(text, "|")) { if (strBID != null && !strBID.trim().equals("")) { randIds.add(Long.parseLong(strBID)); } } } return randIds.toArray(new Long[]{}); }
Example 4
Source File: TextUtils.java From wES with MIT License | 5 votes |
public static Long[] parseLongs(String text) { List<Long> randIds = new ArrayList<Long>(); if (text != null) { for (String strBID : StringUtil.split(text, "|")) { if (strBID != null && !strBID.trim().equals("")) { randIds.add(Long.parseLong(strBID)); } } } return randIds.toArray(new Long[]{}); }
Example 5
Source File: CmdExecuter.java From wES with MIT License | 5 votes |
public String[] values(String key) { String value = mapData.get(key); if (value != null) { return StringUtil.split(value, "|"); } else { return new String[]{}; } }
Example 6
Source File: WCfg.java From wES with MIT License | 4 votes |
public static String[] getValues(final String key, final String... profiles) { String value = getValue(key, profiles); return StringUtil.split(value, ";"); }