[
https://jira.jboss.org/browse/WELDX-190?page=com.atlassian.jira.plugin.sy...
]
Pete Muir commented on WELDX-190:
---------------------------------
We can port this from Weld easily enough.
I would call it Types.box() though.
Provide a utility to transparently wrap primitive types
--------------------------------------------------------
Key: WELDX-190
URL:
https://jira.jboss.org/browse/WELDX-190
Project: Weld Extensions
Issue Type: Feature Request
Affects Versions: 1.0.0.Beta1
Reporter: Dan Allen
Priority: Minor
Fix For: 1.0.0.Beta2
When dealing at the level of a Type, it would be helpful to have a method that would
automatically convert the Type to a primitive wrapper if the original Type represents a
primitive. This functionality is provided by the Primitives class in Guava.
Type type = Primitives.wrap(ip.getType());
At this point, we know that "type" does not represent a primitive.
http://guava-libraries.googlecode.com/svn/trunk/javadoc/com/google/common...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira