public enum CrawlRate extends Enum<CrawlRate>
| Enum Constant and Description |
|---|
FASTER |
FASTEST |
NORMAL |
SLOWER |
SLOWEST |
| Modifier and Type | Method and Description |
|---|---|
static CrawlRate |
fromString(String value)
Parse a string and return a crawl rate.
|
static CrawlRate |
getDefault()
Returns the default CrawlRate value.
|
String |
toString()
Returns the string representation of the CrawlRate.
|
static CrawlRate |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CrawlRate[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CrawlRate SLOWEST
public static final CrawlRate SLOWER
public static final CrawlRate NORMAL
public static final CrawlRate FASTER
public static final CrawlRate FASTEST
public static CrawlRate[] values()
for (CrawlRate c : CrawlRate.values()) System.out.println(c);
public static CrawlRate 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 toString()
public static CrawlRate getDefault()
public static CrawlRate fromString(String value) throws IllegalArgumentException
value - a string representing a crawl rate.IllegalArgumentException - if the parameter is not a valid
CrawlRate string.Copyright © 2012. All Rights Reserved.