org.vmmagic
Annotation Type Unboxed


@Retention(value=RUNTIME)
@Target(value=TYPE)
@Inherited
public @interface Unboxed

The Unboxed annotation marks a type as unboxed. Besides the primitive types, all Java values are boxed types. Conceptually, they are represented by a pointer to a heap object. However, an unboxed type is represented by the value itself. All methods on an unboxed type are Intrinsics.

As an unboxed type is not a regular java object there are a few constraints on the way unboxed types are handled;

NOTE: At the current time the Unboxed annotation is only used for documentation purposes but in the near future it is expected that the semantics of the annotation will be enforced by the compiler.