java.lang.Objectjavax.management.openmbean.OpenType
javax.management.openmbean.SimpleType
public final class SimpleType
The SimpleType class is the open type class whose instances describe
all open data values which are neither arrays,
nor values,
nor CompositeData values.
It predefines all its possible instances as static fields, and has no public constructor.
TabularData
Given a SimpleType instance describing values whose Java class name is className,
the internal fields corresponding to the name and description of this SimpleType instance
are also set to className.
In other words, its methods getClassName, getTypeName and getDescription
all return the same string value className.
| Field Summary | |
|---|---|
static SimpleType |
BIGDECIMAL
The SimpleType instance describing values whose
Java class name is java.math.BigDecimal. |
static SimpleType |
BIGINTEGER
The SimpleType instance describing values whose
Java class name is java.math.BigInteger. |
static SimpleType |
BOOLEAN
The SimpleType instance describing values whose
Java class name is java.lang.Boolean. |
static SimpleType |
BYTE
The SimpleType instance describing values whose
Java class name is java.lang.Byte. |
static SimpleType |
CHARACTER
The SimpleType instance describing values whose
Java class name is java.lang.Character. |
static SimpleType |
DATE
The SimpleType instance describing values whose
Java class name is java.util.Date. |
static SimpleType |
DOUBLE
The SimpleType instance describing values whose
Java class name is java.lang.Double. |
static SimpleType |
FLOAT
The SimpleType instance describing values whose
Java class name is java.lang.Float. |
static SimpleType |
INTEGER
The SimpleType instance describing values whose
Java class name is java.lang.Integer. |
static SimpleType |
LONG
The SimpleType instance describing values whose
Java class name is java.lang.Long. |
static SimpleType |
OBJECTNAME
The SimpleType instance describing values whose
Java class name is javax.management.ObjectName. |
static SimpleType |
SHORT
The SimpleType instance describing values whose
Java class name is java.lang.Short. |
static SimpleType |
STRING
The SimpleType instance describing values whose
Java class name is java.lang.String. |
static SimpleType |
VOID
The SimpleType instance describing values whose
Java class name is java.lang.Void. |
| Fields inherited from class javax.management.openmbean.OpenType |
|---|
ALLOWED_CLASSNAMES |
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Compares the specified obj parameter with this SimpleType instance for equality. |
int |
hashCode()
Returns the hash code value for this SimpleType instance. |
boolean |
isValue(Object obj)
Tests whether obj is a value for this SimpleType instance. |
Object |
readResolve()
Replace an object read from an ObjectInputStream with the unique instance for that
value. |
String |
toString()
Returns a string representation of this SimpleType 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 |
| Field Detail |
|---|
public static final SimpleType VOID
SimpleType instance describing values whose
Java class name is java.lang.Void.
public static final SimpleType BOOLEAN
SimpleType instance describing values whose
Java class name is java.lang.Boolean.
public static final SimpleType CHARACTER
SimpleType instance describing values whose
Java class name is java.lang.Character.
public static final SimpleType BYTE
SimpleType instance describing values whose
Java class name is java.lang.Byte.
public static final SimpleType SHORT
SimpleType instance describing values whose
Java class name is java.lang.Short.
public static final SimpleType INTEGER
SimpleType instance describing values whose
Java class name is java.lang.Integer.
public static final SimpleType LONG
SimpleType instance describing values whose
Java class name is java.lang.Long.
public static final SimpleType FLOAT
SimpleType instance describing values whose
Java class name is java.lang.Float.
public static final SimpleType DOUBLE
SimpleType instance describing values whose
Java class name is java.lang.Double.
public static final SimpleType STRING
SimpleType instance describing values whose
Java class name is java.lang.String.
public static final SimpleType BIGDECIMAL
SimpleType instance describing values whose
Java class name is java.math.BigDecimal.
public static final SimpleType BIGINTEGER
SimpleType instance describing values whose
Java class name is java.math.BigInteger.
public static final SimpleType DATE
SimpleType instance describing values whose
Java class name is java.util.Date.
public static final SimpleType OBJECTNAME
SimpleType instance describing values whose
Java class name is javax.management.ObjectName.
| Method Detail |
|---|
public boolean isValue(Object obj)
SimpleType instance. This method returns
true if and only if obj is not null and
obj's class name is the same as the className field
defined for this SimpleType instance (ie the class
name returned by the getClassName method).
obj - the object to be tested.
true if obj is a value for this
SimpleType instance.public boolean equals(Object obj)
obj parameter with this SimpleType instance for equality.
Two SimpleType instances are equal if and only if their
getClassName methods return the same value.
obj - the object to be compared for equality with this SimpleType instance;
if obj is null or is not an instance of the class SimpleType,
equals returns false.
true if the specified object is equal to this SimpleType instance.Object.hashCode(),
Hashtablepublic int hashCode()
SimpleType instance.
The hash code of a SimpleType instance is the the hash code of
the string value returned by the getClassName method.
As SimpleType 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.
SimpleType instanceObject.equals(java.lang.Object),
Hashtablepublic String toString()
SimpleType instance.
The string representation consists of
the name of this class (ie javax.management.openmbean.SimpleType) and the type name
for this instance (which is the java class name of the values this SimpleType instance represents).
As SimpleType 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.
SimpleType instancepublic Object readResolve() throws ObjectStreamException
ObjectInputStream with the unique instance for that
value.
ObjectStreamException - if the read object cannot be
resolved.Ces 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)