public enum Algorithm extends Enum<Algorithm>
| Enum Constant and Description |
|---|
CLASS_NAMES
This algorithm reverses the order of the segments in a
dot-delimited string, then uses the prefix of the result.
|
PREFIX
This algorithm uses the first few characters of the original string.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getDefaultPreserve()
Return the default preserve value for this algorithm.
|
String |
toString()
Return the internal code for this algorithm constant.
|
static Algorithm |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Algorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Algorithm PREFIX
public static final Algorithm CLASS_NAMES
public static Algorithm[] values()
for (Algorithm c : Algorithm.values()) System.out.println(c);
public static Algorithm 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 int getDefaultPreserve()
Copyright © 2014. All Rights Reserved.