本文整理汇总了Java中org.febit.util.StringUtil.toArrayOmitCommit方法的典型用法代码示例。如果您正苦于以下问题:Java StringUtil.toArrayOmitCommit方法的具体用法?Java StringUtil.toArrayOmitCommit怎么用?Java StringUtil.toArrayOmitCommit使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.febit.util.StringUtil
的用法示例。
在下文中一共展示了StringUtil.toArrayOmitCommit方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: resolve
import org.febit.util.StringUtil; //导入方法依赖的package包/类
@Override
public Object resolve(ActionRequest request, Class type, String name, int index) {
String raw = request.getParameter(name);
if (raw == null) {
return null;
}
return StringUtil.toArrayOmitCommit(raw);
}
示例2: toIntArray
import org.febit.util.StringUtil; //导入方法依赖的package包/类
public static int[] toIntArray(String string) {
if (string == null) {
return null;
}
final String[] strings = StringUtil.toArrayOmitCommit(string);
final int len = strings.length;
final int[] entrys = new int[len];
for (int i = 0; i < len; i++) {
entrys[i] = toInt(strings[i]);
}
return entrys;
}
示例3: toIntegerArray
import org.febit.util.StringUtil; //导入方法依赖的package包/类
public static Integer[] toIntegerArray(String string) {
if (string == null) {
return null;
}
final String[] strings = StringUtil.toArrayOmitCommit(string);
final int len = strings.length;
final Integer[] entrys = new Integer[len];
for (int i = 0; i < len; i++) {
entrys[i] = toInteger(strings[i]);
}
return entrys;
}
示例4: toLongArray
import org.febit.util.StringUtil; //导入方法依赖的package包/类
public static long[] toLongArray(String string) {
if (string == null) {
return null;
}
final String[] strings = StringUtil.toArrayOmitCommit(string);
final int len = strings.length;
final long[] entrys = new long[len];
for (int i = 0; i < len; i++) {
entrys[i] = toLong(strings[i]);
}
return entrys;
}
示例5: toLongObjectArray
import org.febit.util.StringUtil; //导入方法依赖的package包/类
public static Long[] toLongObjectArray(String string) {
if (string == null) {
return null;
}
final String[] strings = StringUtil.toArrayOmitCommit(string);
final int len = strings.length;
final Long[] entrys = new Long[len];
for (int i = 0; i < len; i++) {
entrys[i] = toLongObject(strings[i]);
}
return entrys;
}
示例6: toBoolArray
import org.febit.util.StringUtil; //导入方法依赖的package包/类
public static boolean[] toBoolArray(String string) {
if (string == null) {
return null;
}
final String[] strings = StringUtil.toArrayOmitCommit(string);
final int len = strings.length;
final boolean[] entrys = new boolean[len];
for (int i = 0; i < len; i++) {
entrys[i] = toBool(strings[i]);
}
return entrys;
}
示例7: toClassArray
import org.febit.util.StringUtil; //导入方法依赖的package包/类
public static Class[] toClassArray(String string) {
if (string == null) {
return null;
}
final String[] strings = StringUtil.toArrayOmitCommit(string);
final int len = strings.length;
final Class[] entrys = new Class[len];
for (int i = 0; i < len; i++) {
entrys[i] = toClass(strings[i]);
}
return entrys;
}
示例8: toBooleanArray
import org.febit.util.StringUtil; //导入方法依赖的package包/类
public static Boolean[] toBooleanArray(String string) {
if (string == null) {
return null;
}
final String[] strings = StringUtil.toArrayOmitCommit(string);
final int len = strings.length;
final Boolean[] entrys = new Boolean[len];
for (int i = 0; i < len; i++) {
entrys[i] = toBoolean(strings[i]);
}
return entrys;
}