📄 boolean.java
字号:
/* libaegisvm - The Aegis Virtual Machine for executing Java bytecode Copyright (C) 2001-2002 Philip W. L. Fong This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA*//* * java.lang.Boolean * * (c) 1997 George David Morrison * * API version: 1.0.2 * * History: * 01JAN1997 George David Morrison * Initial version */package java.lang;public final class Boolean implements java.io.Serializable { public static final Boolean TRUE = new Boolean(true); public static final Boolean FALSE = new Boolean(false); public static final Class TYPE = Class.getPrimitiveType(Class.T_BOOLEAN); private boolean value; public Boolean(boolean value) { this.value = value; } public Boolean(String s) { value = (s != null && s.equalsIgnoreCase("true")); } public boolean booleanValue() { return value; } public static Boolean valueOf(String s) { return new Boolean(s); } public String toString() { return value ? "true" : "false"; } public int hashCode() { return value ? 1231 : 1237; } public boolean equals(Object obj) { return obj instanceof Boolean && value == ((Boolean) obj).value; } public static boolean getBoolean(String name) { String propertyValue = System.getProperty(name); return valueOf(propertyValue).booleanValue(); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -