Tabnine Logo
ObjectUtils.isEmpty
Code IndexAdd Tabnine to your IDE (free)

How to use
isEmpty
method
in
com.baomidou.mybatisplus.core.toolkit.ObjectUtils

Best Java code snippets using com.baomidou.mybatisplus.core.toolkit.ObjectUtils.isEmpty (Showing top 10 results out of 315)

origin: baomidou/mybatis-plus

/**
 * 判断object是否为空,集合会校验size
 */
public static boolean isNull(Object... objs) {
  for (Object obj : objs) {
    if (ObjectUtils.isEmpty(obj)) {
      return true;
    }
  }
  return false;
}
origin: baomidou/mybatis-plus

/**
 * 对象非空判断
 */
public static boolean isNotEmpty(Object obj) {
  return !ObjectUtils.isEmpty(obj);
}
origin: baomidou/mybatis-plus

public static void notEmpty(Map<?, ?> map, IErrorCode errorCode) {
  if (ObjectUtils.isEmpty(map)) {
    fail(errorCode);
  }
}
origin: baomidou/mybatis-plus

public static void notEmpty(Object[] array, IErrorCode errorCode) {
  if (ObjectUtils.isEmpty(array)) {
    fail(errorCode);
  }
}
origin: Caratacus/Crown

@Override
public ServletInputStream getInputStream() {
  if (ObjectUtils.isEmpty(body)) {
    return null;
  }
  final ByteArrayInputStream bais = new ByteArrayInputStream(body);
  return new ServletInputStream() {
    @Override
    public boolean isFinished() {
      return false;
    }
    @Override
    public boolean isReady() {
      return false;
    }
    @Override
    @SuppressWarnings("EmptyMethod")
    public void setReadListener(ReadListener readListener) {
    }
    @Override
    public int read() {
      return bais.read();
    }
  };
}
origin: Caratacus/Crown

public static void notEmpty(ErrorCodeEnum errorCodeEnum, Object[] array) {
  if (ObjectUtils.isEmpty(array)) {
    failure(errorCodeEnum);
  }
}
origin: com.baomidou/mybatis-plus-extension

public static void notEmpty(Object[] array, IErrorCode errorCode) {
  if (ObjectUtils.isEmpty(array)) {
    fail(errorCode);
  }
}
origin: com.baomidou/mybatis-plus-extension

public static void notEmpty(Map<?, ?> map, IErrorCode errorCode) {
  if (ObjectUtils.isEmpty(map)) {
    fail(errorCode);
  }
}
origin: Caratacus/Crown

public static void notEmpty(ErrorCode errorCode, Object[] array) {
  if (ObjectUtils.isEmpty(array)) {
    failure(errorCode);
  }
}
origin: io.github.xiaoyudeguang/easy-web

@Override
public void doOnRefreshed(ApplicationContext context) throws Exception {
  EasyMap tableBeans = SpringUtils.getBeanswithAnnotation(TableBean.class);
  Map<String, ?> generators = SpringUtils.getBeansOfType(AbstractGenerator.class);
  if(generators!=null && generators.size()>0) {
    AbstractGenerator generator = null;
    EasyGenerater easyGenerater = null;
    for(String generaterName : generators.keySet()) {
      generator = (AbstractGenerator) generators.get(generaterName);
      if(!ObjectUtils.isEmpty(generator)) {
        easyGenerater = generator.getClass().getAnnotation(EasyGenerater.class);
        if(!(easyGenerater!=null && !easyGenerater.isGenerate()) && generator.isGenerate()) {
          generator.run(tableBeans);
        }
      }
    }
  }
}
 
com.baomidou.mybatisplus.core.toolkitObjectUtilsisEmpty

Javadoc

对象空判断

Popular methods of ObjectUtils

  • isNull
  • isNotNull

Popular in Java

  • Reactive rest calls using spring rest template
  • getContentResolver (Context)
  • requestLocationUpdates (LocationManager)
  • setRequestProperty (URLConnection)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Table (org.hibernate.mapping)
    A relational table
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now