emul/mini/src/main/java/java/lang/Void.java
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Wed, 23 Jan 2013 20:39:23 +0100
branchemul
changeset 554 05224402145d
parent 414 emul/src/main/java/java/lang/Void.java@0dab62955440
permissions -rw-r--r--
First attempt to separate 'mini' profile from the rest of JDK APIs
jaroslav@414
     1
/*
jaroslav@414
     2
 * Copyright (c) 1996, 2006, Oracle and/or its affiliates. All rights reserved.
jaroslav@414
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
jaroslav@414
     4
 *
jaroslav@414
     5
 * This code is free software; you can redistribute it and/or modify it
jaroslav@414
     6
 * under the terms of the GNU General Public License version 2 only, as
jaroslav@414
     7
 * published by the Free Software Foundation.  Oracle designates this
jaroslav@414
     8
 * particular file as subject to the "Classpath" exception as provided
jaroslav@414
     9
 * by Oracle in the LICENSE file that accompanied this code.
jaroslav@414
    10
 *
jaroslav@414
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
jaroslav@414
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
jaroslav@414
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
jaroslav@414
    14
 * version 2 for more details (a copy is included in the LICENSE file that
jaroslav@414
    15
 * accompanied this code).
jaroslav@414
    16
 *
jaroslav@414
    17
 * You should have received a copy of the GNU General Public License version
jaroslav@414
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
jaroslav@414
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
jaroslav@414
    20
 *
jaroslav@414
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
jaroslav@414
    22
 * or visit www.oracle.com if you need additional information or have any
jaroslav@414
    23
 * questions.
jaroslav@414
    24
 */
jaroslav@414
    25
jaroslav@414
    26
package java.lang;
jaroslav@414
    27
jaroslav@414
    28
/**
jaroslav@414
    29
 * The {@code Void} class is an uninstantiable placeholder class to hold a
jaroslav@414
    30
 * reference to the {@code Class} object representing the Java keyword
jaroslav@414
    31
 * void.
jaroslav@414
    32
 *
jaroslav@414
    33
 * @author  unascribed
jaroslav@414
    34
 * @since   JDK1.1
jaroslav@414
    35
 */
jaroslav@414
    36
public final
jaroslav@414
    37
class Void {
jaroslav@414
    38
jaroslav@414
    39
    /**
jaroslav@414
    40
     * The {@code Class} object representing the pseudo-type corresponding to
jaroslav@414
    41
     * the keyword {@code void}.
jaroslav@414
    42
     */
jaroslav@414
    43
    public static final Class<Void> TYPE = Class.getPrimitiveClass("void");
jaroslav@414
    44
jaroslav@414
    45
    /*
jaroslav@414
    46
     * The Void class cannot be instantiated.
jaroslav@414
    47
     */
jaroslav@414
    48
    private Void() {}
jaroslav@414
    49
}