public final class Strings extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isEmpty(CharSequence cs)
Checks if a CharSequence is empty ("") or null.
|
public static final String EMPTY
public static boolean isEmpty(CharSequence cs)
Strings.isEmpty(null) = true
Strings.isEmpty("") = true
Strings.isEmpty(" ") = false
Strings.isEmpty("bob") = false
Strings.isEmpty(" bob ") = false
cs - the CharSequence to check, may be null.true if the CharSequence is empty or null.Copyright © 2020. All rights reserved.