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 write
List<Integer>.
This leads to autoboxing (int <->
Integer) and therefore some overhead. To avoid this problem, we use some
specialize classes.
- Author:
- Philippe Charles
-
Required Element Summary
Required Elements