本文整理了Java中org.geotools.feature.type.DateUtil.parseCharString()
方法的一些代码示例,展示了DateUtil.parseCharString()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DateUtil.parseCharString()
方法的具体详情如下:
包路径:org.geotools.feature.type.DateUtil
类名称:DateUtil
方法名:parseCharString
[英]Parse char value from text as character value. This requires that the string must be of length one.
[中]将文本中的字符值解析为字符值。这要求字符串的长度必须为1。
代码示例来源:origin: geotools/geotools
/**
* Deserialize char value from text as character value. This requires that the string must be
* null or of length one.
*
* @param text text to be parsed (may be <code>null</code>)
* @return converted char value
* @throws IllegalArgumentException on parse error
*/
public static char deserializeCharString(String text) throws IllegalArgumentException {
if (text == null) {
return 0;
} else {
return parseCharString(text);
}
}
代码示例来源:origin: org.geotools/gt-main
/**
* Deserialize char value from text as character value. This requires that
* the string must be null or of length one.
*
* @param text text to be parsed (may be <code>null</code>)
*
* @return converted char value
*
* @throws IllegalArgumentException on parse error
*/
public static char deserializeCharString(String text)
throws IllegalArgumentException {
if (text == null) {
return 0;
} else {
return parseCharString(text);
}
}
代码示例来源:origin: org.geotools/gt2-main
/**
* Deserialize char value from text as character value. This requires that
* the string must be null or of length one.
*
* @param text text to be parsed (may be <code>null</code>)
*
* @return converted char value
*
* @throws IllegalArgumentException on parse error
*/
public static char deserializeCharString(String text)
throws IllegalArgumentException {
if (text == null) {
return 0;
} else {
return parseCharString(text);
}
}
内容来源于网络,如有侵权,请联系作者删除!