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
             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/primitives/Primitives.html

-- 
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

        
_______________________________________________
weld-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/weld-issues

Reply via email to