Commons Lang
  1. Commons Lang
  2. LANG-756

Add APIs ClassUtils.isPrimitiveWrapper(Class<?>) and isPrimitiveOrWrapper(Class<?>)

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1
    • Component/s: lang.*
    • Labels:
      None
    • Environment:

      Description

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

        Activity

        Hide
        Gary Gregory added a comment -

        In SVN.

        Show
        Gary Gregory added a comment - In SVN.

          People

          • Assignee:
            Gary Gregory
            Reporter:
            Gary Gregory
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development