@@ -457,48 +457,6 @@ public static void setValue(final Field field, final Object instance,
457457
458458 // -- Type querying --
459459
460- public static boolean isBoolean (final Class <?> type ) {
461- return type == boolean .class || Boolean .class .isAssignableFrom (type );
462- }
463-
464- public static boolean isByte (final Class <?> type ) {
465- return type == byte .class || Byte .class .isAssignableFrom (type );
466- }
467-
468- public static boolean isCharacter (final Class <?> type ) {
469- return type == char .class || Character .class .isAssignableFrom (type );
470- }
471-
472- public static boolean isDouble (final Class <?> type ) {
473- return type == double .class || Double .class .isAssignableFrom (type );
474- }
475-
476- public static boolean isFloat (final Class <?> type ) {
477- return type == float .class || Float .class .isAssignableFrom (type );
478- }
479-
480- public static boolean isInteger (final Class <?> type ) {
481- return type == int .class || Integer .class .isAssignableFrom (type );
482- }
483-
484- public static boolean isLong (final Class <?> type ) {
485- return type == long .class || Long .class .isAssignableFrom (type );
486- }
487-
488- public static boolean isShort (final Class <?> type ) {
489- return type == short .class || Short .class .isAssignableFrom (type );
490- }
491-
492- public static boolean isNumber (final Class <?> type ) {
493- return Number .class .isAssignableFrom (type ) || type == byte .class ||
494- type == double .class || type == float .class || type == int .class ||
495- type == long .class || type == short .class ;
496- }
497-
498- public static boolean isText (final Class <?> type ) {
499- return String .class .isAssignableFrom (type ) || isCharacter (type );
500- }
501-
502460 // -- Comparison --
503461
504462 /**
@@ -629,6 +587,66 @@ public static boolean hasClass(final String className,
629587 return Types .load (className , classLoader ) != null ;
630588 }
631589
590+ /** @deprecated Use {@link Types#isBoolean} instead. */
591+ @ Deprecated
592+ public static boolean isBoolean (final Class <?> type ) {
593+ return Types .isBoolean (type );
594+ }
595+
596+ /** @deprecated Use {@link Types#isByte} instead. */
597+ @ Deprecated
598+ public static boolean isByte (final Class <?> type ) {
599+ return Types .isByte (type );
600+ }
601+
602+ /** @deprecated Use {@link Types#isCharacter} instead. */
603+ @ Deprecated
604+ public static boolean isCharacter (final Class <?> type ) {
605+ return Types .isCharacter (type );
606+ }
607+
608+ /** @deprecated Use {@link Types#isDouble} instead. */
609+ @ Deprecated
610+ public static boolean isDouble (final Class <?> type ) {
611+ return Types .isDouble (type );
612+ }
613+
614+ /** @deprecated Use {@link Types#isFloat} instead. */
615+ @ Deprecated
616+ public static boolean isFloat (final Class <?> type ) {
617+ return Types .isFloat (type );
618+ }
619+
620+ /** @deprecated Use {@link Types#isInteger} instead. */
621+ @ Deprecated
622+ public static boolean isInteger (final Class <?> type ) {
623+ return Types .isInteger (type );
624+ }
625+
626+ /** @deprecated Use {@link Types#isLong} instead. */
627+ @ Deprecated
628+ public static boolean isLong (final Class <?> type ) {
629+ return Types .isLong (type );
630+ }
631+
632+ /** @deprecated Use {@link Types#isShort} instead. */
633+ @ Deprecated
634+ public static boolean isShort (final Class <?> type ) {
635+ return Types .isShort (type );
636+ }
637+
638+ /** @deprecated Use {@link Types#isNumber} instead. */
639+ @ Deprecated
640+ public static boolean isNumber (final Class <?> type ) {
641+ return Types .isNumber (type );
642+ }
643+
644+ /** @deprecated Use {@link Types#isText} instead. */
645+ @ Deprecated
646+ public static boolean isText (final Class <?> type ) {
647+ return Types .isText (type );
648+ }
649+
632650 /** @deprecated use {@link ConversionUtils#convert(Object, Class)} */
633651 @ Deprecated
634652 public static <T > T convert (final Object value , final Class <T > type ) {
0 commit comments