Package org.jboss.windup.util
Class Checks
- java.lang.Object
-
- org.jboss.windup.util.Checks
-
public class Checks extends Object
- Author:
- Ondrej Zizka
-
-
Constructor Summary
Constructors Constructor Description Checks()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcheckDirectoryToBeFilled(File outputDir, String dirDesc)static voidcheckDirectoryToBeRead(File rootDir, String dirDesc)static voidcheckFileOrDirectoryToBeRead(File fileOrDir, String fileDesc)Throws if the given file is null, is not a file or directory, or is an empty directory.static voidcheckFileToBeRead(File archive, String fileDesc)static booleancheckNotEmpty(Iterable<?> iterable)Returns true if the iterable contains at least one item.
-
-
-
Method Detail
-
checkFileToBeRead
public static void checkFileToBeRead(File archive, String fileDesc) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
checkDirectoryToBeFilled
public static void checkDirectoryToBeFilled(File outputDir, String dirDesc) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
checkFileOrDirectoryToBeRead
public static void checkFileOrDirectoryToBeRead(File fileOrDir, String fileDesc)
Throws if the given file is null, is not a file or directory, or is an empty directory.
-
checkNotEmpty
public static boolean checkNotEmpty(Iterable<?> iterable)
Returns true if the iterable contains at least one item.
-
-