public class Util extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
isBlank(String s)
Tests if a String is either null or empty.
|
static void |
sleep(long ms)
Sleeps for the specified number of milliseconds.
|
static boolean |
wildcardMatch(String text,
String pattern)
Tests if a String matches another String with a wildcard pattern.
|
public static void sleep(long ms)
ms
- How long to sleeppublic static boolean wildcardMatch(String text, String pattern)
text
- The String to testpattern
- The String containing a wildcard pattern where ? represents a
single character and * represents any number of characters. If the
first character of the pattern is a carat (^) the test is
performed against the remaining characters and the result of the
test is the opposite.public static boolean isBlank(String s)
s
- The string to testCopyright © 2010–2020 oshi. All rights reserved.