本文整理了Java中java.lang.Class.getPrimitiveClass()
方法的一些代码示例,展示了Class.getPrimitiveClass()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Class.getPrimitiveClass()
方法的具体详情如下:
包路径:java.lang.Class
类名称:Class
方法名:getPrimitiveClass
暂无
代码示例来源:origin: stackoverflow.com
/**
* The <code>Class</code> instance representing the primitive type
* <code>long</code>.
*
* @since JDK1.1
*/
public static final Class<Long> TYPE =
(Class<Long>) Class.getPrimitiveClass("long");
代码示例来源:origin: stackoverflow.com
public static final Class<Byte> TYPE = (Class<Byte>) Class.getPrimitiveClass("byte");
代码示例来源:origin: stackoverflow.com
package java.lang;
public final class Void {
public static final Class<Void> TYPE = Class.getPrimitiveClass("void");
private Void() {
}
}
代码示例来源:origin: stackoverflow.com
public static final Class<Byte> TYPE = (Class<Byte>) Class.getPrimitiveClass("byte");
代码示例来源:origin: stackoverflow.com
public static final Class<Integer> TYPE = (Class<Integer>) Class.getPrimitiveClass("int");
代码示例来源:origin: stackoverflow.com
public final class Void {
public static final Class<Void> TYPE = Class.getPrimitiveClass("void");
private Void() {}
}
代码示例来源:origin: stackoverflow.com
public static final Class<Integer> TYPE = (Class<Integer>) Class.getPrimitiveClass("int");
代码示例来源:origin: stackoverflow.com
public static final Class<Void> TYPE = Class.getPrimitiveClass("void");
代码示例来源:origin: stackoverflow.com
public static final Class<Long> TYPE = (Class<Long>) Class.getPrimitiveClass("long");
代码示例来源:origin: com.jtransc/jtransc-rt
public static final int BYTES = SIZE / Byte.SIZE;
public static final Class<Double> TYPE = (Class<Double>) Class.getPrimitiveClass("double");
代码示例来源:origin: com.jtransc/jtransc-rt
public static final char MIN_VALUE = '\u0000';
public static final char MAX_VALUE = '\uFFFF';
public static final Class<Character> TYPE = (Class<Character>) Class.getPrimitiveClass("char");
代码示例来源:origin: jtulach/bck2brwsr
public static final Class<Double> TYPE = (Class<Double>) Class.getPrimitiveClass("double");
代码示例来源:origin: org.apidesign.bck2brwsr/emul.mini
public static final Class<Double> TYPE = (Class<Double>) Class.getPrimitiveClass("double");
内容来源于网络,如有侵权,请联系作者删除!