javax.management.openmbean
Class ArrayType
java.lang.Object
|
+--javax.management.openmbean.OpenType
|
+--javax.management.openmbean.ArrayType
- All Implemented Interfaces:
- java.io.Serializable
- public class ArrayType
- extends OpenType
- implements java.io.Serializable
The ArrayType class is the open type class whose instances describe all open data values
which are n-dimensional arrays of open data values
- Version:
- $Revision: 1.6 $
- Author:
- Bronwen Cassidy, Warren Mira
- See Also:
- Serialized Form
Constructor Summary |
ArrayType(int dimension,
OpenType elementType)
Constructs an ArrayType instance describing open data values
which are arrays with dimension dimension of elements whose
open type is elementType. |
Method Summary |
boolean |
equals(java.lang.Object object)
Check if object is equal with this ArrayType |
int |
getDimension()
Returns the Dimension described by this ArrayType |
OpenType |
getElementOpenType()
Returns the OpenType of element values contained in
in the arrays described by this ArrayType instance |
int |
hashCode()
Compute the hashCode of this ArrayType |
boolean |
isValue(java.lang.Object object)
Test whether object is a value for this ArrayType instance. |
java.lang.String |
toString()
Format this ArrayType is a String |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
ArrayType
public ArrayType(int dimension,
OpenType elementType)
throws OpenDataException
- Constructs an ArrayType instance describing open data values
which are arrays with dimension dimension of elements whose
open type is elementType.
- Parameters:
dimension
- The dimension of this ArrayType and should be greater
than 0;elementType
- The OpenType element of this ArrayType- Throws:
OpenDataException
- if elementType is instance of ArrayTypejava.lang.IllegalArgumentException
- if dimension is less than or zero
getDimension
public int getDimension()
- Returns the Dimension described by this ArrayType
- Returns:
- int The dimension
getElementOpenType
public OpenType getElementOpenType()
- Returns the OpenType of element values contained in
in the arrays described by this ArrayType instance
- Returns:
- OpenType The
OpenType
instance
isValue
public boolean isValue(java.lang.Object object)
- Test whether object is a value for this
ArrayType
instance.
- Overrides:
isValue
in class OpenType
- Returns:
- boolean True if object is a value
equals
public boolean equals(java.lang.Object object)
- Check if object is equal with this ArrayType
- Overrides:
equals
in class OpenType
- Returns:
- true If Equal
hashCode
public int hashCode()
- Compute the hashCode of this ArrayType
- Overrides:
hashCode
in class OpenType
- Returns:
- int The computed hashCode
toString
public java.lang.String toString()
- Format this ArrayType is a String
- Overrides:
toString
in class OpenType
- Returns:
- String The readable format
Copyright © 2001-2002 MX4J Team. All Rights Reserved.