jaroslav@414: /* jaroslav@414: * Copyright (c) 1996, 2006, Oracle and/or its affiliates. All rights reserved. jaroslav@414: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. jaroslav@414: * jaroslav@414: * This code is free software; you can redistribute it and/or modify it jaroslav@414: * under the terms of the GNU General Public License version 2 only, as jaroslav@414: * published by the Free Software Foundation. Oracle designates this jaroslav@414: * particular file as subject to the "Classpath" exception as provided jaroslav@414: * by Oracle in the LICENSE file that accompanied this code. jaroslav@414: * jaroslav@414: * This code is distributed in the hope that it will be useful, but WITHOUT jaroslav@414: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or jaroslav@414: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License jaroslav@414: * version 2 for more details (a copy is included in the LICENSE file that jaroslav@414: * accompanied this code). jaroslav@414: * jaroslav@414: * You should have received a copy of the GNU General Public License version jaroslav@414: * 2 along with this work; if not, write to the Free Software Foundation, jaroslav@414: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. jaroslav@414: * jaroslav@414: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA jaroslav@414: * or visit www.oracle.com if you need additional information or have any jaroslav@414: * questions. jaroslav@414: */ jaroslav@414: jaroslav@414: package java.lang; jaroslav@414: jaroslav@414: /** jaroslav@414: * The {@code Void} class is an uninstantiable placeholder class to hold a jaroslav@414: * reference to the {@code Class} object representing the Java keyword jaroslav@414: * void. jaroslav@414: * jaroslav@414: * @author unascribed jaroslav@414: * @since JDK1.1 jaroslav@414: */ jaroslav@414: public final jaroslav@414: class Void { jaroslav@414: jaroslav@414: /** jaroslav@414: * The {@code Class} object representing the pseudo-type corresponding to jaroslav@414: * the keyword {@code void}. jaroslav@414: */ jaroslav@414: public static final Class TYPE = Class.getPrimitiveClass("void"); jaroslav@414: jaroslav@414: /* jaroslav@414: * The Void class cannot be instantiated. jaroslav@414: */ jaroslav@414: private Void() {} jaroslav@414: }