public class Ensure extends Object
| Constructor and Description |
|---|
Ensure() |
| Modifier and Type | Method and Description |
|---|---|
static void |
argIsNotNull(Object arg,
String varName) |
static void |
fileExists(File file,
String argFile) |
static void |
fileExists(String filePath) |
static void |
isFalse(boolean condition,
String message) |
static void |
isTrue(boolean condition,
String message) |
static void |
stringIsNotBlank(String str,
String varName) |
public static void fileExists(File file, String argFile) throws FileNotFoundException
FileNotFoundExceptionpublic static void fileExists(String filePath) throws FileNotFoundException
FileNotFoundExceptionpublic static void isTrue(boolean condition,
String message)
public static void isFalse(boolean condition,
String message)
Copyright © 2023. All rights reserved.