OpenMBeanOperationInfo (Java SE 15 & JDK 15) (original) (raw)
All Known Implementing Classes:
[OpenMBeanOperationInfoSupport](OpenMBeanOperationInfoSupport.html "class in javax.management.openmbean")
public interface OpenMBeanOperationInfo
Since:
1.5
Method Summary
Modifier and Type | Method | Description |
---|---|---|
boolean | equals(Object obj) | Compares the specified obj parameter with this OpenMBeanOperationInfo instance for equality. |
String | getDescription() | Returns a human readable description of the operation described by this OpenMBeanOperationInfo instance. |
int | getImpact() | Returns an int constant qualifying the impact of the operation described by this OpenMBeanOperationInfo instance. |
String | getName() | Returns the name of the operation described by this OpenMBeanOperationInfo instance. |
OpenType<?> | getReturnOpenType() | Returns the open type of the values returned by the operation described by this OpenMBeanOperationInfo instance. |
String | getReturnType() | Returns the fully qualified Java class name of the values returned by the operation described by thisOpenMBeanOperationInfo instance. |
MBeanParameterInfo[] | getSignature() | Returns an array of OpenMBeanParameterInfo instances describing each parameter in the signature of the operation described by this OpenMBeanOperationInfo instance. |
int | hashCode() | Returns the hash code value for this OpenMBeanOperationInfo instance. |
String | toString() | Returns a string representation of this OpenMBeanOperationInfo instance. |
Method Details
getDescription
Returns a human readable description of the operation described by this
OpenMBeanOperationInfo
instance.
Returns:
the description.getName
Returns the name of the operation described by this
OpenMBeanOperationInfo
instance.
Returns:
the name.getSignature
Returns an array of
OpenMBeanParameterInfo
instances describing each parameter in the signature of the operation described by thisOpenMBeanOperationInfo
instance. Each instance in the returned array should actually be a subclass ofMBeanParameterInfo
which implements theOpenMBeanParameterInfo
interface (typically OpenMBeanParameterInfoSupport).
Returns:
the signature.getImpact
int getImpact()
Returns:
the impact code.getReturnType
Returns the fully qualified Java class name of the values returned by the operation described by this
OpenMBeanOperationInfo
instance. This method should return the same value as a call togetReturnOpenType().getClassName()
.
Returns:
the return type.getReturnOpenType
Returns the open type of the values returned by the operation described by this
OpenMBeanOperationInfo
instance.
Returns:
the return type.equals
boolean equals(Object obj)
Compares the specified obj parameter with thisOpenMBeanOperationInfo
instance for equality.
Returnstrue
if and only if all of the following statements are true:
* obj is non null,
* obj also implements theOpenMBeanOperationInfo
interface,
* their names are equal
* their signatures are equal
* their return open types are equal
* their impacts are equal
This ensures that thisequals
method works properly for obj parameters which are different implementations of theOpenMBeanOperationInfo
interface.
Overrides:
[equals](../../../../java.base/java/lang/Object.html#equals%28java.lang.Object%29)
in class[Object](../../../../java.base/java/lang/Object.html "class in java.lang")
Parameters:
obj
- the object to be compared for equality with thisOpenMBeanOperationInfo
instance;
Returns:
true
if the specified object is equal to thisOpenMBeanOperationInfo
instance.
See Also:
Object.hashCode(), HashMaphashCode
int hashCode()
Returns the hash code value for thisOpenMBeanOperationInfo
instance.
The hash code of anOpenMBeanOperationInfo
instance is the sum of the hash codes of all elements of information used inequals
comparisons (ie: its name, return open type, impact and signature, where the signature hashCode is calculated by a call tojava.util.Arrays.asList(this.getSignature).hashCode()
).
This ensures thatt1.equals(t2)
implies thatt1.hashCode()==t2.hashCode()
for any twoOpenMBeanOperationInfo
instancest1
andt2
, as required by the general contract of the methodObject.hashCode().
Overrides:
[hashCode](../../../../java.base/java/lang/Object.html#hashCode%28%29)
in class[Object](../../../../java.base/java/lang/Object.html "class in java.lang")
Returns:
the hash code value for thisOpenMBeanOperationInfo
instance
See Also:
Object.equals(java.lang.Object), System.identityHashCode(java.lang.Object)toString
Returns a string representation of this
OpenMBeanOperationInfo
instance.
The string representation consists of the name of this class (iejavax.management.openmbean.OpenMBeanOperationInfo
), and the name, signature, return open type and impact of the described operation.
Overrides:
[toString](../../../../java.base/java/lang/Object.html#toString%28%29)
in class[Object](../../../../java.base/java/lang/Object.html "class in java.lang")
Returns:
a string representation of thisOpenMBeanOperationInfo
instance