[weld-issues] [JBoss JIRA] Created: (WELDX-190) Provide a utility to transparently wrap primitive types

Dan Allen (JIRA) jira-events at lists.jboss.org
Fri Nov 5 15:28:02 EDT 2010


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

        


More information about the weld-issues mailing list