public enum EngineType extends Enum<EngineType>
This enumeration describes the different kind of Engine that may exist.
In a chain of responsibility, the engines should be sorted following their EngineType.
Sorting could be performed with this Comparable implementation. This way, a chain will always as the same
behavior:
| Enum Constant and Description |
|---|
AGGREGATOR
Fourth type in a chain.
|
BINARY_COMPRESSION
Sixth type in a chain.
|
CACHE
First type in a chain.
|
CONVERTER
Fifth type in the chain.
|
INSPECTOR
Third type in a chain.
|
MINIFICATION
Second type in a chain.
|
| Modifier and Type | Method and Description |
|---|---|
static EngineType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EngineType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static EngineType[] |
without(EngineType... type)
Returns all the
EngineType without the specified one. |
public static final EngineType CACHE
public static final EngineType MINIFICATION
public static final EngineType INSPECTOR
NutDao.public static final EngineType AGGREGATOR
public static final EngineType CONVERTER
public static final EngineType BINARY_COMPRESSION
public static EngineType[] values()
for (EngineType c : EngineType.values()) System.out.println(c);
public static EngineType 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 static EngineType[] without(EngineType... type)
Returns all the EngineType without the specified one.
type - the object to excludeCopyright © 2012-2015. All Rights Reserved.