java.lang.Class.getPrimitiveClass()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(704)

本文整理了Java中java.lang.Class.getPrimitiveClass()方法的一些代码示例,展示了Class.getPrimitiveClass()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Class.getPrimitiveClass()方法的具体详情如下:
包路径:java.lang.Class
类名称:Class
方法名:getPrimitiveClass

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");

相关文章

Class类方法