public class OpenMBeanConstructorInfoSupport extends MBeanConstructorInfo implements OpenMBeanConstructorInfo
description, name| コンストラクタと説明 |
|---|
OpenMBeanConstructorInfoSupport(String name, String description, OpenMBeanParameterInfo[] signature)
指定された
name、description、および signature を持つ公開 MBean のクラスのコンストラクタを記述する、OpenMBeanConstructorInfoSupport インスタンスを構築します。 |
OpenMBeanConstructorInfoSupport(String name, String description, OpenMBeanParameterInfo[] signature, Descriptor descriptor)
指定された
name、description、signature、および descriptor で公開 MBean のクラスのコンストラクタを記述する、OpenMBeanConstructorInfoSupport インスタンスを構築します。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
boolean |
equals(Object obj)
指定された
obj パラメータとこの OpenMBeanConstructorInfoSupport インスタンスが等しいかどうかを比較します。 |
int |
hashCode()
この
OpenMBeanConstructorInfoSupport インスタンスのハッシュコード値を返します。 |
String |
toString()
この
OpenMBeanConstructorInfoSupport インスタンスの文字列表現を返します。 |
clone, getSignaturegetDescription, getDescriptor, getNamegetDescription, getName, getSignaturepublic OpenMBeanConstructorInfoSupport(String name, String description, OpenMBeanParameterInfo[] signature)
指定された name、description、および signature を持つ公開 MBean のクラスのコンストラクタを記述する、OpenMBeanConstructorInfoSupport インスタンスを構築します。
signature 配列パラメータは、signature を使って参照されるその後の配列の変更がこのインスタンスに影響を及ぼさないように、内部でコピーされます。
name - null または空文字列は使用できない。description - null または空文字列は使用できない。signature - 記述するパラメータが存在しない場合は null または空文字列でもよい。IllegalArgumentException - name または description が null または空の String の場合。ArrayStoreException - signature が MBeanParameterInfo のサブクラスのインスタンスの配列でない場合。public OpenMBeanConstructorInfoSupport(String name, String description, OpenMBeanParameterInfo[] signature, Descriptor descriptor)
指定された name、description、signature、および descriptor で公開 MBean のクラスのコンストラクタを記述する、OpenMBeanConstructorInfoSupport インスタンスを構築します。
signature 配列パラメータは、signature を使って参照されるその後の配列の変更がこのインスタンスに影響を及ぼさないように、内部でコピーされます。
name - null または空文字列は使用できない。description - null または空文字列は使用できない。signature - 記述するパラメータが存在しない場合は null または空文字列でもよい。descriptor - コンストラクタの記述子。null の場合があり、これは空の記述子と同等。IllegalArgumentException - name または description が null または空の String の場合。ArrayStoreException - signature が MBeanParameterInfo のサブクラスのインスタンスの配列でない場合。public boolean equals(Object obj)
指定された obj パラメータとこの OpenMBeanConstructorInfoSupport インスタンスが等しいかどうかを比較します。
次のすべての条件が満たされている場合に限り、true を返します。
obj が null でないobj が OpenMBeanConstructorInfo インタフェースも実装しているequals メソッドは、OpenMBeanConstructorInfo インタフェースの異なった実装である obj パラメータに対して正常に機能します。equals、インタフェース: OpenMBeanConstructorInfoequals、クラス: MBeanConstructorInfoobj - この OpenMBeanConstructorInfoSupport インスタンスと等しいかどうかを比較するオブジェクト。OpenMBeanConstructorInfoSupport インスタンスと等しい場合は true。Object.hashCode()、HashMappublic int hashCode()
この OpenMBeanConstructorInfoSupport インスタンスのハッシュコード値を返します。
OpenMBeanConstructorInfoSupport インスタンスのハッシュコードは、equals の比較で使用されたすべての情報要素 (シグニチャー hashCode は java.util.Arrays.asList(this.getSignature).hashCode() の呼び出しによって計算される) のハッシュコードの合計です。
これにより、Object.hashCode() メソッドの一般規約によって要求される、任意の 2 つの OpenMBeanConstructorInfoSupport インスタンス t1 と t2 で、t1.equals(t2) であれば t1.hashCode()==t2.hashCode() となることが保証されます。
OpenMBeanConstructorInfo インタフェースを実装する別のクラスインスタンスが、equals(java.lang.Object) で定義されているように、この OpenMBeanConstructorInfoSupport インスタンスと等しくなる場合もあります。しかし、計算方法が異なっているため、ハッシュコードも異なっている可能性があります。
OpenMBeanConstructorInfoSupport インスタンスは不変で、このインスタンスのハッシュコードは、hashCode の最初の呼び出し時に 1 回だけ計算されます。その後の呼び出しには、同じ値が返されます。
hashCode、インタフェース: OpenMBeanConstructorInfohashCode、クラス: MBeanConstructorInfoOpenMBeanConstructorInfoSupport インスタンスのハッシュコード値Object.equals(java.lang.Object), System.identityHashCode(java.lang.Object)public String toString()
この OpenMBeanConstructorInfoSupport インスタンスの文字列表現を返します。
この文字列表現は、このクラスの名前 (javax.management.openmbean.OpenMBeanConstructorInfoSupport)、記述されたコンストラクタの名前とシグニチャー、およびその記述子の文字列表現で構成されます。
OpenMBeanConstructorInfoSupport インスタンスは不変で、このインスタンスの文字列表現は、toString の最初の呼び出し時に 1 回だけ計算されます。その後の呼び出しには、同じ値が返されます。
toString、インタフェース: OpenMBeanConstructorInfotoString、クラス: MBeanConstructorInfoOpenMBeanConstructorInfoSupport インスタンスの文字列表現 バグまたは機能を送信
詳細な API リファレンスおよび開発者ドキュメントについては、Java SE のドキュメントを参照してください。そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2013, Oracle and/or its affiliates. All rights reserved.