2019独角兽企业重金招聘Python工程师标准>>>

类声明

以下是声明java.lang.Boolean class:

public final class Booleanextends Objectimplements Serializable, Comparable<Boolean>

字段域

Following are the fields for java.lang.Boolean class:

  • static Boolean FALSE -- This is the Boolean object corresponding to the primitive value false.

  • static Boolean TRUE -- This is the Boolean object corresponding to the primitive value true.

  • static Class<Boolean> TYPE -- This is the Class object representing the primitive type boolean.

类构造方法

S.N. 构造方法 & 详细描述
1 Boolean(boolean value)
This allocates a Boolean object representing the value argument.
2 Boolean(String s)
This allocates a Boolean object representing the value true if the string argument is not null and is equal, ignoring case, to the string "true".

类方法

S.N. 方法 & 描述
1 boolean booleanValue() 
This method returns the value of this Boolean object as a boolean primitive.
2 int compareTo(Boolean b) 
This method compares this Boolean instance with another.
3 boolean equals(Object obj) 
This method returns true if and only if the argument is not null and is a Boolean object that represents the same boolean value as this object.
4 static boolean getBoolean(String name) 
This method returns true if and only if the system property named by the argument exists and is equal to the string "true".
5 int hashCode() 
This method returns a hash code for this Boolean object.
6 static boolean parseBoolean(String s) 
This method parses the string argument as a boolean.
7 String toString() 
This method returns a String object representing this Boolean's value.
8 static String toString(boolean b) 
This method returns a String object representing the specified boolean.
9 static Boolean valueOf(boolean b) 
This method returns a Boolean instance representing the specified boolean value.
10 static Boolean valueOf(String s) 
This method returns a Boolean with a value represented by the specified string.

方法继承

此类从以下类继承了上面列出的方法

  • java.lang.Object

转载于:https://my.oschina.net/u/589247/blog/113856

Java.lang.Boolean类相关推荐

  1. 【转】深入研究java.lang.Class类

    深入研究java.lang.Class类            Java程序在运行时,Java运行时系统一直对所有的对象进行所谓的运行时类型标识.这项信息纪录了每个对象所属的类.虚拟机通常使用运行时类 ...

  2. 浅析Java.lang.ProcessBuilder类

    最近由于工作需要把用户配置的Hive命令在Linux环境下执行,专门做了一个用户管理界面特地研究了这个不经常用得ProcessBuilder类.所以把自己的学习的资料总结一下. 一.概述      P ...

  3. java.lang.StackTraceElement类

    java.lang.StackTraceElement 类元素代表一个堆栈帧.除了一个在堆栈的顶部所有的栈帧代表一个方法调用.在堆栈顶部的帧表示在将其生成的堆栈跟踪的执行点. 类声明 以下是java. ...

  4. 深入研究java.lang.Class类

    2019独角兽企业重金招聘Python工程师标准>>> 深入研究java.lang.Class类 博客分类: java Java程序在运行时,Java运行时系统一直对所有的对象进行所 ...

  5. Java.lang.Class类 isArray()方法有什么功能呢?

    转自: Java.lang.Class类 isArray()方法有什么功能呢? 下文讲述Class类中的isArray()方法的功能,如下所示: isArray()方法的功能 java.lang.Cl ...

  6. java.lang.class对象_Java反射——java.lang.Class 类简介

    Java的基本思想之一是万事万物即对象,类也是一种对象.但是类是什么对象呢?Java中的类是java.lang.Class的实例化对象,这被成为类类型. //java.lang.Class类中的的主要 ...

  7. java.lang.Void类

    2019独角兽企业重金招聘Python工程师标准>>> java.lang.Void类是基本类型(primitive type)void的包装类型(wrapped type),fin ...

  8. 解决:java.lang.IllegalArgumentException: Can not set java.lang.Boolean field

    问题场景 使用反射为Boolean类型变量赋值时,调用 java.lang.reflect.Field#setBoolean 报错 public class SetBooleanDemo {publi ...

  9. FeignClient调用 Cannot deserialize instance of `java.lang.Boolean` out of START_OBJECT token to

    异常描述 Caused by: com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize inst ...

最新文章

  1. C语言中文件的读写(fputc和fgetc)(putchar和getchar)
  2. 给AI开发者的新年礼物,技术公开课大放送(附演讲PPT)
  3. 在Mac上使用Nginx和FastCGI部署Flask应用
  4. SAP HUM事务代码 HUMAT 之初探
  5. neo4j cypher_Neo4j:Cypher – Neo.ClientError.Statement.TypeError:不知道如何添加Double和String...
  6. Windows 8.1 新增控件之 Hyperlink
  7. 后缀自动机概念的温习
  8. 台积电预计5nm芯片四季度出货量将超过15万片晶圆,9成供应苹果
  9. 整理数组去重与数组排序等方法
  10. Java 文件读写示例1
  11. 佳能Canon PIXMA MG3020 打印机驱动
  12. 【MFC开发(8)】下拉框控件Combo Box
  13. torch.utils.data.Dataset用法
  14. cad用计算机怎么计算坐标,CAD如何快速计算出图纸中任意点的坐标值
  15. 方差,标准差,协方差,样本标准差,总体标准差,抽样平均误差
  16. 群体遗传学瓶颈效应bottleneck effect
  17. PGM——D-map、I-map、perfect-map
  18. Ipad平板作为MAC苹果电脑的扩展屏幕的技术研究
  19. Python(10)--文件读写/模块制作与发布
  20. mysql 初始化数据库报错

热门文章

  1. 致SEO初学者:学习SEO要注意的几个问题
  2. (三)、Express 路由、静态文件、
  3. 脏矩形(高效绘图 13.3)
  4. LeetCode 102. Binary Tree Level Order Traversal
  5. ubuntu 14.04 安装chrome及给chromium 安装 flash player
  6. LA 2402 (枚举) Fishnet
  7. OpenCV手写数字字符识别(基于k近邻算法)
  8. 一套cms内容网站发布系统
  9. I had no sooner finished eating than went to toilet.
  10. 路由守卫-vue切换路由登录判断、条件判断