All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.naviit.libs.common.util.StringUtil Maven / Gradle / Ivy

There is a newer version: 1.0.3
Show newest version
/************************************************
 * Copyright 2017 by DTT - All rights reserved. *    
 ************************************************/
package com.github.naviit.libs.common.util;

/**
 * @author  Dang Thanh Tung 
 * {@literal }
 * @since   28/12/2017
 */
public class StringUtil {
  
  public static final String EMPTY = "";
  public static final String SPACE = " ";

  public static boolean isEmpty(String...args) {
    for (String ele : args) {
      if(ele == null || ele.trim().isEmpty()) return true;
    }
    return false;
  }

  public static boolean isEmpty(String value) {
    return value == null || value.isEmpty();
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy