com.atlassian.confluence.search.didyoumean
Enum Edit

java.lang.Object
  extended by java.lang.Enum<Edit>
      extended by com.atlassian.confluence.search.didyoumean.Edit
All Implemented Interfaces:
Serializable, Comparable<Edit>

public enum Edit
extends Enum<Edit>

Enum that represents edits that can be used to transform one word into another.


Enum Constant Summary
DELETE
           
DELETE_CONSONANT_AMONG_CONSONANT_PAIR
           
DELETE_FIRST_LETTER
           
DELETE_LETTER_I_FROM_ION
           
INSERT
           
INSERT_CONSONANT_TO_FORM_PAIR
           
INSERT_E_BEFORE_ING
           
INSERT_FIRST_LETTER
           
SUBSTITUTE
           
SUBSTITUTE_C_AND_S
           
SUBSTITUTE_FIRST_LETTER
           
SUBSTITUTE_VOWELS
           
TRANSPOSE
           
TRANSPOSE_VOWELS
           
 
Method Summary
 float cost()
           
static Edit valueOf(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 are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Method Detail

values

public static Edit[] values()
Returns an array containing the constants of this enum type, in the order they are 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 are declared

valueOf

public static Edit valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

cost

public float cost()


Copyright © 2003-2012 Atlassian. All Rights Reserved.