public enum Download extends Enum<Download> implements CompileParameter
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
boolean |
check(Context context) |
static boolean |
checkJars(Context context,
String name,
String zip,
String id,
String path,
String... libraries) |
static long |
downloadAndUnpack(Context context,
String file,
File path) |
static boolean |
downloadZip(File dependencies,
Context context,
String name,
String zip) |
String |
getAlias() |
String |
getDetailedDescription() |
String |
getShortDescription() |
String |
getUsage() |
static boolean |
isDefaultUrl(Context context) |
static Either<Long> |
lastModified(Context context,
String file,
String name,
long current) |
static String |
remoteUrl(Context context) |
void |
run(Context context) |
static Download |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Download[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Download INSTANCE
public static Download[] values()
for (Download c : Download.values()) System.out.println(c);
public static Download valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getAlias()
getAlias in interface CompileParameterpublic String getUsage()
getUsage in interface CompileParameterpublic static boolean isDefaultUrl(Context context)
public static long downloadAndUnpack(Context context, String file, File path) throws IOException
IOExceptionpublic static Either<Long> lastModified(Context context, String file, String name, long current)
public static boolean downloadZip(File dependencies, Context context, String name, String zip)
public static boolean checkJars(Context context, String name, String zip, String id, String path, String... libraries) throws ExitException
ExitExceptionpublic boolean check(Context context)
check in interface CompileParameterpublic void run(Context context)
run in interface CompileParameterpublic String getShortDescription()
getShortDescription in interface CompileParameterpublic String getDetailedDescription()
getDetailedDescription in interface CompileParameterCopyright © 2021. All rights reserved.