< prev index next >
src/jdk.xml.bind/share/classes/com/sun/codemodel/internal/JType.java
Print this page
*** 114,133 ****
public boolean isPrimitive() {
return false;
}
/**
! * If this class is a primitive type, return the boxed class. Otherwise return <tt>this</tt>.
*
* <p>
* For example, for "int", this method returns "java.lang.Integer".
*/
public abstract JClass boxify();
/**
* If this class is a wrapper type for a primitive, return the primitive type.
! * Otherwise return <tt>this</tt>.
*
* <p>
* For example, for "java.lang.Integer", this method returns "int".
*/
public abstract JType unboxify();
--- 114,134 ----
public boolean isPrimitive() {
return false;
}
/**
! * If this class is a primitive type, return the boxed class.
! * Otherwise return {@code this}.
*
* <p>
* For example, for "int", this method returns "java.lang.Integer".
*/
public abstract JClass boxify();
/**
* If this class is a wrapper type for a primitive, return the primitive type.
! * Otherwise return {@code this}.
*
* <p>
* For example, for "java.lang.Integer", this method returns "int".
*/
public abstract JType unboxify();
< prev index next >