Generics of primitivesat 2010-08-10 in Examples, 5.8-SERIES by friebe (0 comments) Like in C# (and unlike Java), primitives can be used as components of generics in the 5.8-SERIES. Given a vector util.collections.Vector<string>, the following applies:// OK Primitives can also be used in other generic collections types, e.g. Set and Map implementations as well as Stack and Queue. |
|