| 
 | Java™ Platform Standard Ed. 6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.management.openmbean.OpenType<T>
javax.management.openmbean.SimpleType<T>
public final class SimpleType<T>
The SimpleType class is the open type class whose instances describe
 all open data values which are neither arrays,
 nor CompositeDataTabularData
 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> | BIGDECIMALThe SimpleTypeinstance describing values whose
 Java class name isjava.math.BigDecimal. | 
| static SimpleType<BigInteger> | BIGINTEGERThe SimpleTypeinstance describing values whose
 Java class name isjava.math.BigInteger. | 
| static SimpleType<Boolean> | BOOLEANThe SimpleTypeinstance describing values whose
 Java class name isjava.lang.Boolean. | 
| static SimpleType<Byte> | BYTEThe SimpleTypeinstance describing values whose
 Java class name isjava.lang.Byte. | 
| static SimpleType<Character> | CHARACTERThe SimpleTypeinstance describing values whose
 Java class name isjava.lang.Character. | 
| static SimpleType<Date> | DATEThe SimpleTypeinstance describing values whose
 Java class name isjava.util.Date. | 
| static SimpleType<Double> | DOUBLEThe SimpleTypeinstance describing values whose
 Java class name isjava.lang.Double. | 
| static SimpleType<Float> | FLOATThe SimpleTypeinstance describing values whose
 Java class name isjava.lang.Float. | 
| static SimpleType<Integer> | INTEGERThe SimpleTypeinstance describing values whose
 Java class name isjava.lang.Integer. | 
| static SimpleType<Long> | LONGThe SimpleTypeinstance describing values whose
 Java class name isjava.lang.Long. | 
| static SimpleType<ObjectName> | OBJECTNAMEThe SimpleTypeinstance describing values whose
 Java class name isjavax.management.ObjectName. | 
| static SimpleType<Short> | SHORTThe SimpleTypeinstance describing values whose
 Java class name isjava.lang.Short. | 
| static SimpleType<String> | STRINGThe SimpleTypeinstance describing values whose
 Java class name isjava.lang.String. | 
| static SimpleType<Void> | VOIDThe SimpleTypeinstance describing values whose
 Java class name isjava.lang.Void. | 
| Fields inherited from class javax.management.openmbean.OpenType | 
|---|
| ALLOWED_CLASSNAMES, ALLOWED_CLASSNAMES_LIST | 
| Method Summary | |
|---|---|
|  boolean | equals(Object obj)Compares the specified objparameter with thisSimpleTypeinstance for equality. | 
|  int | hashCode()Returns the hash code value for this SimpleTypeinstance. | 
|  boolean | isValue(Object obj)Tests whether obj is a value for this SimpleTypeinstance. | 
|  Object | readResolve()Replace an object read from an ObjectInputStreamwith the unique instance for that
 value. | 
|  String | toString()Returns a string representation of this SimpleTypeinstance. | 
| 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> VOID
SimpleType instance describing values whose
 Java class name is java.lang.Void.
public static final SimpleType<Boolean> BOOLEAN
SimpleType instance describing values whose
 Java class name is java.lang.Boolean.
public static final SimpleType<Character> CHARACTER
SimpleType instance describing values whose
 Java class name is java.lang.Character.
public static final SimpleType<Byte> BYTE
SimpleType instance describing values whose
 Java class name is java.lang.Byte.
public static final SimpleType<Short> SHORT
SimpleType instance describing values whose
 Java class name is java.lang.Short.
public static final SimpleType<Integer> INTEGER
SimpleType instance describing values whose
 Java class name is java.lang.Integer.
public static final SimpleType<Long> LONG
SimpleType instance describing values whose
 Java class name is java.lang.Long.
public static final SimpleType<Float> FLOAT
SimpleType instance describing values whose
 Java class name is java.lang.Float.
public static final SimpleType<Double> DOUBLE
SimpleType instance describing values whose
 Java class name is java.lang.Double.
public static final SimpleType<String> STRING
SimpleType instance describing values whose
 Java class name is java.lang.String.
public static final SimpleType<BigDecimal> BIGDECIMAL
SimpleType instance describing values whose
 Java class name is java.math.BigDecimal.
public static final SimpleType<BigInteger> BIGINTEGER
SimpleType instance describing values whose
 Java class name is java.math.BigInteger.
public static final SimpleType<Date> DATE
SimpleType instance describing values whose
 Java class name is java.util.Date.
public static final SimpleType<ObjectName> 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).
isValue in class OpenType<T>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.
equals in class OpenType<T>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.
hashCode in class OpenType<T>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.
toString in class OpenType<T>SimpleType instance
public Object readResolve()
                   throws ObjectStreamException
ObjectInputStream with the unique instance for that
 value.
ObjectStreamException - if the read object cannot be
 resolved.| 
 | Java™ Platform Standard Ed. 6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.