public class StringUtils extends Object
| Constructor and Description |
|---|
StringUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isAllBlank(String string1,
String... strings)
Return true if all strings are null or blank (of length zero after trimming
the string)
|
static boolean |
isAllEmpty(String string1,
String... strings)
Return true if all strings are null or empty (of length zero)
|
static boolean |
isAllNull(String string1,
String... strings)
Return true if all strings are null
|
static boolean |
isAnyBlank(String string1,
String... strings)
Return true if any string is null or blank (of length zero after trimming
the string)
|
static boolean |
isAnyEmpty(String string1,
String... strings)
Return true if any string is null or empty (of length zero)
|
static boolean |
isAnyNull(String string1,
String... strings)
Return true if any string is null
|
static boolean |
isBlank(String string)
Return true if a string is null or blank (of length zero after trimming
the string)
|
static boolean |
isEmpty(String string)
Return true if a string is null or empty (of length zero)
|
static boolean |
isNotBlank(String string) |
static boolean |
isNotEmpty(String string) |
static boolean |
isNotNull(String string) |
static boolean |
isNull(String string)
Return true if a string is null
|
public static boolean isNull(String string)
isNull(null) true
isNull("") false
isNull(" ") false
isNull("hemant") false
public static boolean isNotNull(String string)
public static boolean isAnyNull(String string1, String... strings)
isAnyNull(null, "hemant") true
isAnyNull("", null) true
isAnyNull(" ", null, "hemant") true
isAnyNull("hemant", "patel") false
isAnyNull(null, null, null) true
public static boolean isAllNull(String string1, String... strings)
isAllNull(null, "hemant") false
isAllNull("", null) false
isAllNull(" ", null, "hemant") false
isAllNull("hemant", "patel") false
isAllNull(null, null, null) true
public static boolean isEmpty(String string)
isEmpty(null): true
isEmpty(""): true
isEmpty(" "): false
isEmpty("hemant"): false
public static boolean isNotEmpty(String string)
public static boolean isAnyEmpty(String string1, String... strings)
isAnyEmpty(null, "hemant") true
isAnyEmpty("", null) true
isAnyEmpty(" ", null, "hemant") true
isAnyEmpty("hemant", "patel") false
isAnyEmpty(null, "", null) true
public static boolean isAllEmpty(String string1, String... strings)
isAllEmpty(null, "hemant") false
isAllEmpty("", null) true
isAllEmpty(" ", null, "hemant") false
isAllEmpty("hemant", "patel") false
isAllEmpty(null, null, null) true
public static boolean isBlank(String string)
isBlank(null): true
isBlank(""): true
isBlank(" "): true
isBlank("hemant"): false
public static boolean isNotBlank(String string)
public static boolean isAnyBlank(String string1, String... strings)
isAnyBlank(null, "hemant") true
isAnyBlank("", null, " ") true
isAnyBlank(" ", null, "hemant") true
isAnyBlank("hemant", "patel") false
isAnyBlank(null, " ", null) true
public static boolean isAllBlank(String string1, String... strings)
isAllBlank(null, "hemant") false
isAllBlank("", null, " ") true
isAllBlank(" ", null, "hemant") false
isAllBlank("hemant", "patel") false
isAllBlank(null, null, null) true
Copyright © 2016. All Rights Reserved.