KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > lang > Void


1 /*
2  * @(#)Void.java 1.13 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package java.lang;
9
10 /**
11  * The Void class is an uninstantiable placeholder class to hold a
12  * reference to the Class object representing the Java keyword
13  * void.
14  *
15  * @author unascribed
16  * @version 1.13, 12/19/03
17  * @since JDK1.1
18  */

19 public final
20 class Void {
21
22     /**
23      * The Class object representing the primitive Java type void.
24      */

25     public static final Class JavaDoc<Void JavaDoc> TYPE = Class.getPrimitiveClass("void");
26
27     /*
28      * The Void class cannot be instantiated.
29      */

30     private Void() {}
31 }
32
Popular Tags