1 /* 2 * Copyright (c) 1994, 2013, Oracle and/or its affiliates. All rights reserved. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * This code is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 only, as 7 * published by the Free Software Foundation. Oracle designates this 8 * particular file as subject to the "Classpath" exception as provided 9 * by Oracle in the LICENSE file that accompanied this code. 10 * 11 * This code is distributed in the hope that it will be useful, but WITHOUT 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 * version 2 for more details (a copy is included in the LICENSE file that 15 * accompanied this code). 16 * 17 * You should have received a copy of the GNU General Public License version 18 * 2 along with this work; if not, write to the Free Software Foundation, 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 * 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 * or visit www.oracle.com if you need additional information or have any 23 * questions. 24 */ 25 26 package java.lang; 27 28 import android.compat.annotation.UnsupportedAppUsage; 29 import dalvik.annotation.compat.VersionCodes; 30 31 @SuppressWarnings({"unchecked", "deprecation", "all"}) 32 public final class Boolean 33 implements java.io.Serializable, java.lang.Comparable<java.lang.Boolean> { 34 Boolean(boolean value)35 public Boolean(boolean value) { 36 throw new RuntimeException("Stub!"); 37 } 38 Boolean(java.lang.String s)39 public Boolean(java.lang.String s) { 40 throw new RuntimeException("Stub!"); 41 } 42 parseBoolean(java.lang.String s)43 public static boolean parseBoolean(java.lang.String s) { 44 throw new RuntimeException("Stub!"); 45 } 46 booleanValue()47 public boolean booleanValue() { 48 throw new RuntimeException("Stub!"); 49 } 50 valueOf(boolean b)51 public static java.lang.Boolean valueOf(boolean b) { 52 throw new RuntimeException("Stub!"); 53 } 54 valueOf(java.lang.String s)55 public static java.lang.Boolean valueOf(java.lang.String s) { 56 throw new RuntimeException("Stub!"); 57 } 58 toString(boolean b)59 public static java.lang.String toString(boolean b) { 60 throw new RuntimeException("Stub!"); 61 } 62 toString()63 public java.lang.String toString() { 64 throw new RuntimeException("Stub!"); 65 } 66 hashCode()67 public int hashCode() { 68 throw new RuntimeException("Stub!"); 69 } 70 hashCode(boolean value)71 public static int hashCode(boolean value) { 72 throw new RuntimeException("Stub!"); 73 } 74 equals(java.lang.Object obj)75 public boolean equals(java.lang.Object obj) { 76 throw new RuntimeException("Stub!"); 77 } 78 getBoolean(java.lang.String name)79 public static boolean getBoolean(java.lang.String name) { 80 throw new RuntimeException("Stub!"); 81 } 82 compareTo(java.lang.Boolean b)83 public int compareTo(java.lang.Boolean b) { 84 throw new RuntimeException("Stub!"); 85 } 86 compare(boolean x, boolean y)87 public static int compare(boolean x, boolean y) { 88 throw new RuntimeException("Stub!"); 89 } 90 logicalAnd(boolean a, boolean b)91 public static boolean logicalAnd(boolean a, boolean b) { 92 throw new RuntimeException("Stub!"); 93 } 94 logicalOr(boolean a, boolean b)95 public static boolean logicalOr(boolean a, boolean b) { 96 throw new RuntimeException("Stub!"); 97 } 98 logicalXor(boolean a, boolean b)99 public static boolean logicalXor(boolean a, boolean b) { 100 throw new RuntimeException("Stub!"); 101 } 102 103 public static final java.lang.Boolean FALSE; 104 105 static { 106 FALSE = null; 107 } 108 109 public static final java.lang.Boolean TRUE; 110 111 static { 112 TRUE = null; 113 } 114 115 public static final java.lang.Class<java.lang.Boolean> TYPE; 116 117 static { 118 TYPE = null; 119 } 120 121 private static final long serialVersionUID = -3665804199014368530L; // 0xcd207280d59cfaeeL 122 123 /** 124 * @deprecated Use {@link #booleanValue()}. 125 */ 126 @UnsupportedAppUsage(maxTargetSdk = VersionCodes.P) 127 private final boolean value; 128 129 { 130 value = false; 131 } 132 } 133