Enum Class StemMode

java.lang.Object
java.lang.Enum<StemMode>
com.yahoo.language.process.StemMode
All Implemented Interfaces:
Serializable, Comparable<StemMode>, Constable

public enum StemMode extends Enum<StemMode>
An enum of the stemming modes which can be requested. Stemming implementation may support a smaller number of modes by mapping a mode to a more inclusive alternative.
Author:
Mathias Mølster Lidal
  • Enum Constant Details

    • NONE

      public static final StemMode NONE
    • DEFAULT

      public static final StemMode DEFAULT
    • ALL

      public static final StemMode ALL
    • SHORTEST

      public static final StemMode SHORTEST
    • BEST

      public static final StemMode BEST
  • Method Details

    • values

      public static StemMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static StemMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null