v3.0.0 GA Integer to Long
This commit is contained in:
@@ -90,7 +90,7 @@ public class BeanConvert {
|
||||
}else if(fieldType.equals("long")){
|
||||
value=Long.parseLong(fillValue);
|
||||
}else if(fieldType.equals("java.lang.Long")){
|
||||
value=new Long(fillValue);
|
||||
value= Long.parseLong(fillValue);
|
||||
}else if(fieldType.equals("double")){
|
||||
value=(double)Double.valueOf(fillValue);
|
||||
}else if(fieldType.equals("java.lang.Double")){
|
||||
|
||||
13
maxkey-common/src/test/java/org/maxkey/Integer2LongTest.java
Normal file
13
maxkey-common/src/test/java/org/maxkey/Integer2LongTest.java
Normal file
@@ -0,0 +1,13 @@
|
||||
package org.maxkey;
|
||||
|
||||
public class Integer2LongTest {
|
||||
|
||||
public static void main(String[] args) {
|
||||
// TODO Auto-generated method stub
|
||||
Integer intValue =20000;
|
||||
Long v=Integer.toUnsignedLong(intValue);
|
||||
System.out.println(v);
|
||||
System.out.println(v.getClass());
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user