com.atlassian.confluence.search.didyoumean
Enum Edit
java.lang.Object
java.lang.Enum<Edit>
com.atlassian.confluence.search.didyoumean.Edit
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Edit>
public enum Edit
- extends java.lang.Enum<Edit>
Enum that represents edits that can be used to transform one word into another.
Method Summary |
float |
cost()
|
static Edit |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Edit[] |
values()
Returns an array containing the constants of this enum type, in
the order they're declared. |
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
TRANSPOSE_VOWELS
public static final Edit TRANSPOSE_VOWELS
DELETE_CONSONANT_AMONG_CONSONANT_PAIR
public static final Edit DELETE_CONSONANT_AMONG_CONSONANT_PAIR
INSERT_CONSONANT_TO_FORM_PAIR
public static final Edit INSERT_CONSONANT_TO_FORM_PAIR
DELETE_LETTER_I_FROM_ION
public static final Edit DELETE_LETTER_I_FROM_ION
SUBSTITUTE_C_AND_S
public static final Edit SUBSTITUTE_C_AND_S
TRANSPOSE
public static final Edit TRANSPOSE
DELETE
public static final Edit DELETE
SUBSTITUTE_VOWELS
public static final Edit SUBSTITUTE_VOWELS
SUBSTITUTE
public static final Edit SUBSTITUTE
INSERT_E_BEFORE_ING
public static final Edit INSERT_E_BEFORE_ING
INSERT
public static final Edit INSERT
INSERT_FIRST_LETTER
public static final Edit INSERT_FIRST_LETTER
DELETE_FIRST_LETTER
public static final Edit DELETE_FIRST_LETTER
SUBSTITUTE_FIRST_LETTER
public static final Edit SUBSTITUTE_FIRST_LETTER
values
public static final Edit[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(Edit c : Edit.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static Edit valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
cost
public float cost()
Copyright © 2003-2009 Atlassian Pty Ltd. All Rights Reserved.