commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary D. Gregory (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (LANG-756) Add APIs ClassUtils.isPrimitiveWrapper(Class<?>) and isPrimitiveOrWrapper(Class<?>)
Date Fri, 23 Sep 2011 00:49:26 GMT

     [ https://issues.apache.org/jira/browse/LANG-756?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Gary D. Gregory resolved LANG-756.
----------------------------------

    Resolution: Fixed

In SVN.

> Add APIs ClassUtils.isPrimitiveWrapper(Class<?>) and isPrimitiveOrWrapper(Class<?>)
> -----------------------------------------------------------------------------------
>
>                 Key: LANG-756
>                 URL: https://issues.apache.org/jira/browse/LANG-756
>             Project: Commons Lang
>          Issue Type: New Feature
>          Components: lang.*
>         Environment: Apache Maven 3.0.3 (r1075438; 2011-02-28 12:31:09-0500)
> Maven home: C:\Java\apache-maven-3.0.3\bin\..
> Java version: 1.6.0_24, vendor: Sun Microsystems Inc.
> Java home: C:\Program Files\Java\jdk1.6.0_24\jre
> Default locale: en_US, platform encoding: Cp1252
> OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
>            Reporter: Gary D. Gregory
>            Assignee: Gary D. Gregory
>             Fix For: 3.0.2
>
>
> {code:java}
>     /**
>      * Returns whether the given {@code type} is a primitive or primitive wrapper ({@link
Boolean}, {@link Byte}, {@link Character},
>      * {@link Short}, {@link Integer}, {@link Long}, {@link Double}, {@link Float}).
>      * 
>      * @param type
>      *            The class to query or null.
>      * @return true if the given {@code type} is a primitive or primitive wrapper ({@link
Boolean}, {@link Byte}, {@link Character},
>      *         {@link Short}, {@link Integer}, {@link Long}, {@link Double}, {@link Float}).
>      */
>     public static boolean isPrimitiveOrWrapper(Class<?> type)
>     /**
>      * Returns whether the given {@code type} is a primitive wrapper ({@link Boolean},
{@link Byte}, {@link Character}, {@link Short},
>      * {@link Integer}, {@link Long}, {@link Double}, {@link Float}).
>      * 
>      * @param type
>      *            The class to query or null.
>      * @return true if the given {@code type} is a primitive wrapper ({@link Boolean},
{@link Byte}, {@link Character}, {@link Short},
>      *         {@link Integer}, {@link Long}, {@link Double}, {@link Float}).
>      */
>     public static boolean isPrimitiveWrapper(Class<?> type)
> {code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message