java.lang.Object | ||
↳ | javax.management.openmbean.OpenType<T> | |
↳ | javax.management.openmbean.SimpleType<T> |
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.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
BIGDECIMAL | The SimpleType instance describing values whose
Java class name is java.math.BigDecimal . |
||||||||||
BIGINTEGER | The SimpleType instance describing values whose
Java class name is java.math.BigInteger . |
||||||||||
BOOLEAN | The SimpleType instance describing values whose
Java class name is java.lang.Boolean . |
||||||||||
BYTE | The SimpleType instance describing values whose
Java class name is java.lang.Byte . |
||||||||||
CHARACTER | The SimpleType instance describing values whose
Java class name is java.lang.Character . |
||||||||||
DATE | The SimpleType instance describing values whose
Java class name is java.util.Date . |
||||||||||
DOUBLE | The SimpleType instance describing values whose
Java class name is java.lang.Double . |
||||||||||
FLOAT | The SimpleType instance describing values whose
Java class name is java.lang.Float . |
||||||||||
INTEGER | The SimpleType instance describing values whose
Java class name is java.lang.Integer . |
||||||||||
LONG | The SimpleType instance describing values whose
Java class name is java.lang.Long . |
||||||||||
OBJECTNAME | The SimpleType instance describing values whose
Java class name is javax.management.ObjectName . |
||||||||||
SHORT | The SimpleType instance describing values whose
Java class name is java.lang.Short . |
||||||||||
STRING | The SimpleType instance describing values whose
Java class name is java.lang.String . |
||||||||||
VOID | The SimpleType instance describing values whose
Java class name is java.lang.Void . |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
javax.management.openmbean.OpenType
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Compares the specified
obj parameter with this SimpleType instance for equality. | |||||||||||
Returns the hash code value for this
SimpleType instance. | |||||||||||
Tests whether obj is a value for this
SimpleType instance. | |||||||||||
Replace an object read from an
ObjectInputStream with the unique instance for that
value. | |||||||||||
Returns a string representation of this
SimpleType instance. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
javax.management.openmbean.OpenType
| |||||||||||
From class
java.lang.Object
|
The SimpleType
instance describing values whose
Java class name is java.math.BigDecimal
.
The SimpleType
instance describing values whose
Java class name is java.math.BigInteger
.
The SimpleType
instance describing values whose
Java class name is java.lang.Boolean
.
The SimpleType
instance describing values whose
Java class name is java.lang.Byte
.
The SimpleType
instance describing values whose
Java class name is java.lang.Character
.
The SimpleType
instance describing values whose
Java class name is java.util.Date
.
The SimpleType
instance describing values whose
Java class name is java.lang.Double
.
The SimpleType
instance describing values whose
Java class name is java.lang.Float
.
The SimpleType
instance describing values whose
Java class name is java.lang.Integer
.
The SimpleType
instance describing values whose
Java class name is java.lang.Long
.
The SimpleType
instance describing values whose
Java class name is javax.management.ObjectName
.
The SimpleType
instance describing values whose
Java class name is java.lang.Short
.
The SimpleType
instance describing values whose
Java class name is java.lang.String
.
The SimpleType
instance describing values whose
Java class name is java.lang.Void
.
Compares the specified 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.
Returns the hash code value for this 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
instance
Tests whether obj is a value for this
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.
Replace an object read from an ObjectInputStream
with the unique instance for that
value.
ObjectStreamException | if the read object cannot be resolved. |
---|
Returns a string representation of this 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
instance