test.compliance.openmbean
Class OpenTypeTestCase.MyOpenType
java.lang.Object
javax.management.openmbean.OpenType (src)
test.compliance.openmbean.OpenTypeTestCase.MyOpenType
- All Implemented Interfaces:
- java.io.Serializable
- Enclosing class:
- OpenTypeTestCase (src)
- public static class OpenTypeTestCase.MyOpenType
- extends OpenType (src)
- See Also:
- Serialized Form
Method Summary |
boolean |
equals(java.lang.Object other)
Compares two object types for equality |
int |
hashCode()
Retrieve the hashCode for this OpenType |
boolean |
isValue(java.lang.Object other)
Whether the passed value is one of those described by this open type. |
java.lang.String |
toString()
Retrieve a string representation of this open type |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
OpenTypeTestCase.MyOpenType
public OpenTypeTestCase.MyOpenType(java.lang.String className,
java.lang.String typeName,
java.lang.String description)
throws OpenDataException (src)
equals
public boolean equals(java.lang.Object other)
- Description copied from class:
OpenType (src)
- Compares two object types for equality
- Specified by:
equals
in class OpenType (src)
- Returns:
- obj the object to test with this one
hashCode
public int hashCode()
- Description copied from class:
OpenType (src)
- Retrieve the hashCode for this OpenType
- Specified by:
hashCode
in class OpenType (src)
- Returns:
- the hash code
isValue
public boolean isValue(java.lang.Object other)
- Description copied from class:
OpenType (src)
- Whether the passed value is one of those described by this open type.
- Specified by:
isValue
in class OpenType (src)
- Parameters:
other
- the object to test
- Returns:
- true when it is value for this open type, false otherwise
toString
public java.lang.String toString()
- Description copied from class:
OpenType (src)
- Retrieve a string representation of this open type
- Specified by:
toString
in class OpenType (src)
- Returns:
- the string representation