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

Dan Allen (JIRA) jira-events at lists.jboss.org
Mon Nov 8 12:05:01 EST 2010


    [ https://jira.jboss.org/browse/WELDX-190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12561939#action_12561939 ] 

Dan Allen commented on WELDX-190:
---------------------------------

There's the term I was searching for!

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