日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程语言 > java >内容正文

java

Java.lang.Boolean类

發布時間:2023/12/31 java 32 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Java.lang.Boolean类 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

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类的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。