public enum ScraperMode extends java.lang.Enum<ScraperMode>
Enum Constant and Description |
---|
AGGRESSIVE |
NORMAL |
SOFT |
Modifier and Type | Method and Description |
---|---|
static ScraperMode |
fromIndex(int i)
Generates a ScraperMode object given an index
|
int |
getWaitTime()
Calculates the wait time that corresponds to the mode selected
|
static ScraperMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ScraperMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScraperMode SOFT
public static final ScraperMode NORMAL
public static final ScraperMode AGGRESSIVE
public static ScraperMode[] values()
for (ScraperMode c : ScraperMode.values()) System.out.println(c);
public static ScraperMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getWaitTime()
public static ScraperMode fromIndex(int i)
i
- Index of the mode