java.lang.Objectjavax.management.openmbean.OpenType
javax.management.openmbean.ArrayType
public class ArrayType
The ArrayType class is the open type class whose instances describe
all open data values which are n-dimensional arrays of open data values.
| Field Summary |
|---|
| Fields inherited from class javax.management.openmbean.OpenType |
|---|
ALLOWED_CLASSNAMES |
| 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(Object obj)
Compares the specified obj parameter with this ArrayType instance for equality. |
int |
getDimension()
Returns the dimension of arrays described by this ArrayType instance. |
OpenType |
getElementOpenType()
Returns the open type of element values contained in the arrays described by this ArrayType instance. |
int |
hashCode()
Returns the hash code value for this ArrayType instance. |
boolean |
isValue(Object obj)
Tests whether obj is a value for this ArrayType instance. |
String |
toString()
Returns a string representation of this ArrayType instance. |
| Methods inherited from class javax.management.openmbean.OpenType |
|---|
getClassName, getDescription, getTypeName, isArray |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ArrayType(int dimension,
OpenType elementType)
throws OpenDataException
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>
As an example, the following piece of code:
dimension - the dimension of arrays described by this ArrayType instance;
must be greater than or equal to 1.elementType - the open type of element values contained in the arrays described by
this ArrayType instance; must be an instance of either
SimpleType, CompositeType or TabularType.
IllegalArgumentException - if dimension is not a positive integer
OpenDataException - if elementType is an instance of ArrayType| Method Detail |
|---|
public int getDimension()
public OpenType getElementOpenType()
public boolean isValue(Object obj)
ArrayType instance.
This method returns true if and only if obj is not null, obj is an array
and any one of the following is true:
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),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.
obj - the object to be tested.
true if obj is a value for this ArrayType instance.public boolean equals(Object obj)
obj parameter with this ArrayType instance for equality.
Two ArrayType instances are equal if and only if they describes array instances
which have the same dimension and elements' open type.
obj - the object to be compared for equality with this ArrayType instance;
if obj is null or is not an instance of the class ArrayType,
equals returns false.
true if the specified object is equal to this ArrayType instance.Object.hashCode(),
Hashtablepublic int hashCode()
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.
ArrayType instanceObject.equals(java.lang.Object),
Hashtablepublic String toString()
ArrayType instance.
The string representation consists of
the name of this class (ie javax.management.openmbean.ArrayType), the type name,
the dimension and elements' type defined for this instance,
As ArrayType instances are immutable, the string representation for this instance is calculated once,
on the first call to toString, and then the same value is returned for subsequent calls.
ArrayType instanceCes informations proviennent du site de http://java.sun.com
Le contenu de cette page provient du site de Sun, et est généré depuis un cache sur l'infobrol après certains traitements automatisés. La présentation peut donc différer du document original, mais le contenu aussi. Vous pouvez utiliser ce bouton pour afficher la page originale du site de Sun :
Maintenir les pages en cache sur différents sites peut offrir plus de disponibilité.
Chaque page est indexée dans la base de donnée, ce qui permet de retrouver facilement les informations, au moyen des sommaires, du moteur de recherche interne, etc.
Des facilités sont mises en place pour que les membres de l'infobrol puissent effectuer des traductions en français des différents documents. Ceci devrait permettre aux débutants en programmation Java de consulter les API en français s'ils maîtrisent moins bien la langue de Shakespeare. Dans le cas où une traduction a été soumise, elle est disponible au moyen d'un lien en bas de page. Si la traduction a été validée, la page s'affiche par défaut en français, et un lien en bas de page permet d'atteindre la version en anglais.
Le code sur l'infobrol est automatiquement coloré selon la syntaxe, et les différents mots clés sont transformés en liens pour accéder rapidement aux informations.
Vous avez la possibilité de partager vos expériences en proposant vos propres extraits de code en utilisant le bouton "ajouter un commentaire" en bas de page. Si vous visitez simplement l'infobrol, vous avez déjà accès à cette fonction, mais si vous étes membre du brol, vous pouvez en plus utiliser des boutons supplémentaires de mise en forme, dont la coloration automatique de vos extraits de codes.
Vous pouvez modifier vos préférences dans votre profil pour ne plus afficher les interactions avec les réseaux sociaux sur ces pages.
7 mots clés dont 0 définis manuellement (plus d'information...).
Avertissement
Cette page ne possède pas encore de mots clés manuels, ceci est donc un exemple automatique (les niveaux de pertinence sont fictifs, mais les liens sont valables). Pour tester le nuage avec une page qui contient des mots définis manuellement, vous pouvez cliquer ici.Vous pouvez modifier vos préférences dans votre profil pour ne plus afficher le nuage de mots clés.
Recherche (afficher)
Utilisateur (masquer)
Navigation (masquer)
Apparence (afficher)
Stats (afficher)
Citation (masquer)