-
- All Known Implementing Classes:
OpenMBeanConstructorInfoSupport
public interface OpenMBeanConstructorInfoDescribes a constructor of an Open MBean.
This interface declares the same methods as the class
MBeanConstructorInfo. A class implementing this interface (typicallyOpenMBeanConstructorInfoSupport) should extendMBeanConstructorInfo.The
getSignature()method should return at runtime an array of instances of a subclass ofMBeanParameterInfowhich implements theOpenMBeanParameterInfointerface (typicallyOpenMBeanParameterInfoSupport).- Since:
- 1.5
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanequals(Object obj)Compares the specified obj parameter with thisOpenMBeanConstructorInfoinstance for equality.StringgetDescription()Returns a human readable description of the constructor described by thisOpenMBeanConstructorInfoinstance.StringgetName()Returns the name of the constructor described by thisOpenMBeanConstructorInfoinstance.MBeanParameterInfo[]getSignature()Returns an array ofOpenMBeanParameterInfoinstances describing each parameter in the signature of the constructor described by thisOpenMBeanConstructorInfoinstance.inthashCode()Returns the hash code value for thisOpenMBeanConstructorInfoinstance.StringtoString()Returns a string representation of thisOpenMBeanConstructorInfoinstance.
-
-
-
Method Detail
-
getDescription
String getDescription()
Returns a human readable description of the constructor described by thisOpenMBeanConstructorInfoinstance.- Returns:
- the description.
-
getName
String getName()
Returns the name of the constructor described by thisOpenMBeanConstructorInfoinstance.- Returns:
- the name.
-
getSignature
MBeanParameterInfo[] getSignature()
Returns an array ofOpenMBeanParameterInfoinstances describing each parameter in the signature of the constructor described by thisOpenMBeanConstructorInfoinstance.- Returns:
- the signature.
-
equals
boolean equals(Object obj)
Compares the specified obj parameter with thisOpenMBeanConstructorInfoinstance for equality.Returns
trueif and only if all of the following statements are true:- obj is non null,
- obj also implements the
OpenMBeanConstructorInfointerface, - their names are equal
- their signatures are equal.
equalsmethod works properly for obj parameters which are different implementations of theOpenMBeanConstructorInfointerface.
- Overrides:
equalsin classObject- Parameters:
obj- the object to be compared for equality with thisOpenMBeanConstructorInfoinstance;- Returns:
trueif the specified object is equal to thisOpenMBeanConstructorInfoinstance.- See Also:
Object.hashCode()
-
hashCode
int hashCode()
Returns the hash code value for thisOpenMBeanConstructorInfoinstance.The hash code of an
OpenMBeanConstructorInfoinstance is the sum of the hash codes of all elements of information used inequalscomparisons (ie: its name and signature, where the signature hashCode is calculated by a call tojava.util.Arrays.asList(this.getSignature).hashCode()).This ensures that
t1.equals(t2)implies thatt1.hashCode()==t2.hashCode()for any twoOpenMBeanConstructorInfoinstancest1andt2, as required by the general contract of the methodObject.hashCode().- Overrides:
hashCodein classObject- Returns:
- the hash code value for this
OpenMBeanConstructorInfoinstance - See Also:
Object.equals(java.lang.Object)
-
toString
String toString()
Returns a string representation of thisOpenMBeanConstructorInfoinstance.The string representation consists of the name of this class (ie
javax.management.openmbean.OpenMBeanConstructorInfo), and the name and signature of the described constructor.
-
-