ArrayType

Constructs an ArrayType instance describing open data values which are
arrays with dimension dimension of elements whose open type is elementType.

When invoked on an ArrayType instance, the getClassName method
returns the class name of the array instances it describes (following the rules defined by the
getName method of java.lang.Class), not the class name of the array elements
(which is returned by a call to getElementOpenType().getClassName()).

The internal field corresponding to the type name of this ArrayType instance is also set to
the class name of the array instances it describes.
In other words, the methods getClassName and getTypeName return the same string value.
The internal field corresponding to the description of this ArrayType instance is set to a string value
which follows the following template:<dimension>-dimension array of <element_class_name>

isValue

This method returns true if and only if obj is not null, obj is an array
and any one of the following is true:

if this ArrayType instance describes an array of SimpleType elements,
obj's class name is the same as the className field defined for this ArrayType instance
(ie the class name returned by the getClassName method,
which includes the dimension information),

if this ArrayType instance describes an array
of classes implementing the TabularData interface or the CompositeData interface,
obj is assignable to such a declared array,
and each element contained in obj is either null or a valid value for the element's open type
specified by this ArrayType instance.

hashCode

public int hashCode()

Returns the hash code value for this ArrayType instance.

The hash code of a ArrayType instance is the sum of the hash codes
of all elements of information used in equals comparisons
(ie: dimension and elements' type).
This ensures that t1.equals(t2) implies that t1.hashCode()==t2.hashCode()
for any two ArrayType instances t1 and t2,
as required by the general contract of the method
Object.hashCode().

As ArrayType instances are immutable, the hash code for this instance is calculated once,
on the first call to hashCode, and then the same value is returned for subsequent calls.