|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.apache.commons.lang.ObjectUtils.Null
null が他の意味を持ってしまう場合の代用のために使用されます。
例えば、 HashMap の get(key) メソッドは指定されたキーに null
が関連付けられていた場合にも該当するキーが存在しなかった場合にも null を返します。
Null は子の2つの場合を区別するために使用されます。
HashMap the get(key) method returns null
if the Map contains null or if there is no matching key. The Null
placeholder can be used to distinguish between these two cases.
他の例としては HashTable は null を保持することができません。
HashTable, where null
cannot be stored.
| コンストラクタの概要 | |
private |
ObjectUtils.Null()
制限されたコンストラクタ(シングルトン) Restricted constructor - singleton |
| メソッドの概要 | |
private Object |
readResolve()
シングルトンを保証します。 |
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
private ObjectUtils.Null()
| メソッドの詳細 |
private Object readResolve()
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||