Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
爱吃血肠
spring-framework
提交
3d318ea3
S
spring-framework
项目概览
爱吃血肠
/
spring-framework
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
spring-framework
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
3d318ea3
编写于
3月 06, 2009
作者:
K
Keith Donald
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
javadoc polishing
上级
9216b3e8
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
17 addition
and
15 deletion
+17
-15
org.springframework.core/src/main/java/org/springframework/core/convert/ConversionExecutionException.java
...gframework/core/convert/ConversionExecutionException.java
+2
-2
org.springframework.core/src/main/java/org/springframework/core/convert/converter/NumberToNumber.java
...pringframework/core/convert/converter/NumberToNumber.java
+3
-2
org.springframework.core/src/main/java/org/springframework/core/convert/converter/StringToBigDecimal.java
...gframework/core/convert/converter/StringToBigDecimal.java
+1
-1
org.springframework.core/src/main/java/org/springframework/core/convert/converter/StringToBigInteger.java
...gframework/core/convert/converter/StringToBigInteger.java
+1
-1
org.springframework.core/src/main/java/org/springframework/core/convert/converter/StringToBoolean.java
...ringframework/core/convert/converter/StringToBoolean.java
+3
-2
org.springframework.core/src/main/java/org/springframework/core/convert/converter/StringToDouble.java
...pringframework/core/convert/converter/StringToDouble.java
+1
-1
org.springframework.core/src/main/java/org/springframework/core/convert/converter/StringToEnum.java
.../springframework/core/convert/converter/StringToEnum.java
+2
-2
org.springframework.core/src/main/java/org/springframework/core/convert/converter/StringToFloat.java
...springframework/core/convert/converter/StringToFloat.java
+1
-1
org.springframework.core/src/main/java/org/springframework/core/convert/converter/StringToLong.java
.../springframework/core/convert/converter/StringToLong.java
+1
-1
org.springframework.core/src/main/java/org/springframework/core/convert/converter/StringToShort.java
...springframework/core/convert/converter/StringToShort.java
+1
-1
org.springframework.core/src/main/java/org/springframework/core/convert/converter/SuperConverter.java
...pringframework/core/convert/converter/SuperConverter.java
+1
-1
未找到文件。
org.springframework.core/src/main/java/org/springframework/core/convert/ConversionExecutionException.java
浏览文件 @
3d318ea3
...
...
@@ -89,8 +89,8 @@ public class ConversionExecutionException extends ConversionException {
}
private
static
String
defaultMessage
(
Object
value
,
Class
<?>
sourceClass
,
Class
<?>
targetClass
,
Throwable
cause
)
{
return
"Unable to convert value "
+
StylerUtils
.
style
(
value
)
+
" from type
'
"
+
sourceClass
.
getName
()
+
"
' to type '"
+
targetClass
.
getName
()
+
"'
; reason = '"
+
cause
.
getMessage
()
+
"'"
;
return
"Unable to convert value "
+
StylerUtils
.
style
(
value
)
+
" from type
[
"
+
sourceClass
.
getName
()
+
"
] to type ["
+
targetClass
.
getName
()
+
"]
; reason = '"
+
cause
.
getMessage
()
+
"'"
;
}
}
\ No newline at end of file
org.springframework.core/src/main/java/org/springframework/core/convert/converter/NumberToNumber.java
浏览文件 @
3d318ea3
...
...
@@ -18,9 +18,9 @@ package org.springframework.core.convert.converter;
import
org.springframework.util.NumberUtils
;
/**
*Converts from any JDK-standard Number implementation to any other JDK-standard Number implementation.
*
Converts from any JDK-standard Number implementation to any other JDK-standard Number implementation.
*
* Support Number classes includ
e byte, short, integer, float, double, long, big integer, big d
ecimal. This class
* Support Number classes includ
ing Byte, Short, Integer, Float, Double, Long, BigInteger, BigD
ecimal. This class
* delegates to {@link NumberUtils#convertNumberToTargetClass(Number, Class)} to perform the conversion.
*
* @see java.lang.Byte
...
...
@@ -31,6 +31,7 @@ import org.springframework.util.NumberUtils;
* @see java.lang.Float
* @see java.lang.Double
* @see java.math.BigDecimal
* @see NumberUtils
*
* @author Keith Donald
*/
...
...
org.springframework.core/src/main/java/org/springframework/core/convert/converter/StringToBigDecimal.java
浏览文件 @
3d318ea3
...
...
@@ -18,7 +18,7 @@ package org.springframework.core.convert.converter;
import
java.math.BigDecimal
;
/**
* Converts a String to a BigDecimal
and back
.
* Converts a String to a BigDecimal
using {@link BigDecimal#BigDecimal(String)
.
*
* @author Keith Donald
*/
...
...
org.springframework.core/src/main/java/org/springframework/core/convert/converter/StringToBigInteger.java
浏览文件 @
3d318ea3
...
...
@@ -18,7 +18,7 @@ package org.springframework.core.convert.converter;
import
java.math.BigInteger
;
/**
* Converts a String to a BigInteger
and back
.
* Converts a String to a BigInteger
using {@link BigInteger#BigInteger(String)}
.
*
* @author Keith Donald
*/
...
...
org.springframework.core/src/main/java/org/springframework/core/convert/converter/StringToBoolean.java
浏览文件 @
3d318ea3
...
...
@@ -16,8 +16,9 @@
package
org.springframework.core.convert.converter
;
/**
* Converts String to a Boolean
and back
.
* Converts String to a Boolean
. The trueString and falseStrings are configurable
.
*
* @see #StringToBoolean(String, String)
* @author Keith Donald
*/
public
class
StringToBoolean
implements
Converter
<
String
,
Boolean
>
{
...
...
@@ -31,7 +32,7 @@ public class StringToBoolean implements Converter<String, Boolean> {
private
String
falseString
;
/**
* Create a StringToBoolean converter.
* Create a StringToBoolean converter
with the default 'true' and 'false' strings
.
*/
public
StringToBoolean
()
{
}
...
...
org.springframework.core/src/main/java/org/springframework/core/convert/converter/StringToDouble.java
浏览文件 @
3d318ea3
...
...
@@ -16,7 +16,7 @@
package
org.springframework.core.convert.converter
;
/**
* Converts a String to a Double
and back
.
* Converts a String to a Double
using {@link Double#valueOf(String)}
.
*
* @author Keith Donald
*/
...
...
org.springframework.core/src/main/java/org/springframework/core/convert/converter/StringToEnum.java
浏览文件 @
3d318ea3
...
...
@@ -16,9 +16,9 @@
package
org.springframework.core.convert.converter
;
/**
* Converts from a String to Enum
and back
.
* Converts from a String to Enum
using {@link Enum#valueOf(Class, String)}
.
*
* @author
Scott Andrews
* @author
Keith Donald
*/
@SuppressWarnings
(
"unchecked"
)
public
class
StringToEnum
implements
SuperConverter
<
String
,
Enum
>
{
...
...
org.springframework.core/src/main/java/org/springframework/core/convert/converter/StringToFloat.java
浏览文件 @
3d318ea3
...
...
@@ -16,7 +16,7 @@
package
org.springframework.core.convert.converter
;
/**
* Converts a String to
an Short using {@link Shor
t#valueOf(String)}.
* Converts a String to
Float using {@link Floa
t#valueOf(String)}.
*
* @author Keith Donald
*/
...
...
org.springframework.core/src/main/java/org/springframework/core/convert/converter/StringToLong.java
浏览文件 @
3d318ea3
...
...
@@ -16,7 +16,7 @@
package
org.springframework.core.convert.converter
;
/**
* Converts a String to a
n
Long using {@link Long#valueOf(String)}.
* Converts a String to a Long using {@link Long#valueOf(String)}.
*
* @author Keith Donald
*/
...
...
org.springframework.core/src/main/java/org/springframework/core/convert/converter/StringToShort.java
浏览文件 @
3d318ea3
...
...
@@ -16,7 +16,7 @@
package
org.springframework.core.convert.converter
;
/**
* Converts a String to a
n
Short using {@link Short#valueOf(String)}.
* Converts a String to a Short using {@link Short#valueOf(String)}.
*
* @author Keith Donald
*/
...
...
org.springframework.core/src/main/java/org/springframework/core/convert/converter/SuperConverter.java
浏览文件 @
3d318ea3
...
...
@@ -20,7 +20,7 @@ import org.springframework.core.convert.ConversionService;
/**
* A super converter converts a source object of type S to a target type of type AT and back, where AT is equal to or a
* subclass of T.
* subclass of T
, T being the "super" target type. This allows a single converter to convert to objects that are part of a common class hierarchy
.
* <p>
* Implementations of this interface are thread-safe and can be shared. Converters are typically registered with and
* accessed through a {@link ConversionService}.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录