程序包 cn.godmao.utils

类 ObjectUtil

直接已知子类:
SimpleHelper

public class ObjectUtil extends RandomUtil
对象工具类
  • 构造器详细资料

    • ObjectUtil

      public ObjectUtil()
  • 方法详细资料

    • isNull

      public static boolean isNull(Object... objs)
      判断object是否为空,集合会校验size
    • isNotNull

      public static boolean isNotNull(Object... obj)
      判断object是否不为空,集合会校验size
    • isNotEmpty

      public static boolean isNotEmpty(Object obj)
      对象非空判断
    • isEmpty

      public static boolean isEmpty(Object obj)
      对象空判断
    • defaultValue

      public static <T> T defaultValue(Class<T> type)
    • checkNotNull

      public static <T> T checkNotNull(T arg, String text)
    • isTrue

      public static void isTrue(boolean expression, String message)
    • isTrue

      public static void isTrue(boolean expression)
    • isNull

      public static void isNull(Object object, String message)
    • isNull

      public static void isNull(Object object)
    • notNull

      public static void notNull(Object object, String message)
    • notNull

      public static void notNull(Object object)
    • hasLength

      public static boolean hasLength(String str)
    • hasLength

      public static boolean hasLength(CharSequence str)
    • hasLength

      public static void hasLength(String text, String message)
    • hasText

      public static boolean hasText(String str)
    • hasText

      public static boolean hasText(CharSequence str)
    • hasText

      public static void hasText(String text, String message)
    • doesNotContain

      public static void doesNotContain(String textToSearch, String substring, String message)
    • doesNotContain

      public static void doesNotContain(String textToSearch, String substring)
    • notEmpty

      public static void notEmpty(Object[] array, String message)
    • notEmpty

      public static void notEmpty(Object[] array)
    • notEmpty

      public static void notEmpty(byte[] array, String msg)
    • noNullElements

      public static void noNullElements(Object[] array, String message)
    • noNullElements

      public static void noNullElements(Object[] array)
    • notEmpty

      public static void notEmpty(Collection collection, String message)
    • notEmpty

      public static void notEmpty(Collection collection)
    • notEmpty

      public static void notEmpty(Map map, String message)
    • notEmpty

      public static void notEmpty(Map map)
    • isInstanceOf

      public static void isInstanceOf(Class clazz, Object obj)
    • isInstanceOf

      public static void isInstanceOf(Class type, Object obj, String message)
    • isAssignable

      public static void isAssignable(Class superType, Class subType)
    • isAssignable

      public static void isAssignable(Class superType, Class subType, String message)
    • state

      public static void state(boolean expression, String message)
    • state

      public static void state(boolean expression)
    • isBaseType

      public boolean isBaseType(Object value)
      验证该对象是否基础类型
    • isBaseType

      public boolean isBaseType(Class<?> beanClass)
      验证该对象是否基础类型
    • isNumeric

      public static Boolean isNumeric(String str)
      判断String是否能转int