Lines Matching defs:SimpleType

46  * The <code>SimpleType</code> class is the <i>open type</i> class whose instances describe
52 * Given a <code>SimpleType</code> instance describing values whose Java class name is <i>className</i>,
53 * the internal fields corresponding to the name and description of this <code>SimpleType</code> instance
60 public final class SimpleType<T> extends OpenType<T> {
65 // SimpleType instances.
66 // IF YOU ADD A SimpleType, YOU MUST UPDATE OpenType and typeArray
69 * The <code>SimpleType</code> instance describing values whose
72 public static final SimpleType<Void> VOID =
73 new SimpleType<Void>(Void.class);
76 * The <code>SimpleType</code> instance describing values whose
79 public static final SimpleType<Boolean> BOOLEAN =
80 new SimpleType<Boolean>(Boolean.class);
83 * The <code>SimpleType</code> instance describing values whose
86 public static final SimpleType<Character> CHARACTER =
87 new SimpleType<Character>(Character.class);
90 * The <code>SimpleType</code> instance describing values whose
93 public static final SimpleType<Byte> BYTE =
94 new SimpleType<Byte>(Byte.class);
97 * The <code>SimpleType</code> instance describing values whose
100 public static final SimpleType<Short> SHORT =
101 new SimpleType<Short>(Short.class);
104 * The <code>SimpleType</code> instance describing values whose
107 public static final SimpleType<Integer> INTEGER =
108 new SimpleType<Integer>(Integer.class);
111 * The <code>SimpleType</code> instance describing values whose
114 public static final SimpleType<Long> LONG =
115 new SimpleType<Long>(Long.class);
118 * The <code>SimpleType</code> instance describing values whose
121 public static final SimpleType<Float> FLOAT =
122 new SimpleType<Float>(Float.class);
125 * The <code>SimpleType</code> instance describing values whose
128 public static final SimpleType<Double> DOUBLE =
129 new SimpleType<Double>(Double.class);
132 * The <code>SimpleType</code> instance describing values whose
135 public static final SimpleType<String> STRING =
136 new SimpleType<String>(String.class);
139 * The <code>SimpleType</code> instance describing values whose
142 public static final SimpleType<BigDecimal> BIGDECIMAL =
143 new SimpleType<BigDecimal>(BigDecimal.class);
146 * The <code>SimpleType</code> instance describing values whose
149 public static final SimpleType<BigInteger> BIGINTEGER =
150 new SimpleType<BigInteger>(BigInteger.class);
153 * The <code>SimpleType</code> instance describing values whose
156 public static final SimpleType<Date> DATE =
157 new SimpleType<Date>(Date.class);
160 * The <code>SimpleType</code> instance describing values whose
163 public static final SimpleType<ObjectName> OBJECTNAME =
164 new SimpleType<ObjectName>(ObjectName.class);
166 private static final SimpleType<?>[] typeArray = {
178 private SimpleType(Class<T> valueClass) {
184 /* *** SimpleType specific information methods *** */
188 * <code>SimpleType</code> instance. <p> This method returns
191 * defined for this <code>SimpleType</code> instance (ie the class
198 * <code>SimpleType</code> instance.
217 * Compares the specified <code>obj</code> parameter with this <code>SimpleType</code> instance for equality.
219 * Two <code>SimpleType</code> instances are equal if and only if their
222 * @param obj the object to be compared for equality with this <code>SimpleType</code> instance;
223 * if <var>obj</var> is <code>null</code> or is not an instance of the class <code>SimpleType</code>,
226 * @return <code>true</code> if the specified object is equal to this <code>SimpleType</code> instance.
235 if (!(obj instanceof SimpleType<?>))
238 SimpleType<?> other = (SimpleType<?>) obj;
246 * Returns the hash code value for this <code>SimpleType</code> instance.
247 * The hash code of a <code>SimpleType</code> instance is the the hash code of
250 * As <code>SimpleType</code> instances are immutable, the hash code for this instance is calculated once,
253 * @return the hash code value for this <code>SimpleType</code> instance
269 * Returns a string representation of this <code>SimpleType</code> instance.
272 * the name of this class (ie <code>javax.management.openmbean.SimpleType</code>) and the type name
273 * for this instance (which is the java class name of the values this <code>SimpleType</code> instance represents).
275 * As <code>SimpleType</code> instances are immutable, the string representation for this instance is calculated once,
278 * @return a string representation of this <code>SimpleType</code> instance
293 private static final Map<SimpleType<?>,SimpleType<?>> canonicalTypes =
294 new HashMap<SimpleType<?>,SimpleType<?>>();
297 final SimpleType<?> type = typeArray[i];
313 final SimpleType<?> canonical = canonicalTypes.get(this);
316 throw new InvalidObjectException("Invalid SimpleType: " + this);