-
@Target(TYPE) @Retention(CLASS) @Documented public @interface PrimitiveReplacementOf
Specifies that a class is a primitive-friendly drop-in replacement of a generic class.Generics in Java don't handle primivites. You can't write
List<int>. Instead you have to writeList<Integer>.
This leads to autoboxing (int <-> Integer) and therefore some overhead. To avoid this problem, we use some specialize classes.- Author:
- Philippe Charles