Class MethodType

Object
AbstractEnumerator
MethodType
All Implemented Interfaces:
Serializable, Enumerator

public final class MethodType extends AbstractEnumerator
A representation of the literals of the enumeration 'Method Type', and utility methods for working with them.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The 'GET' literal value.
    static final MethodType
    The 'GET' literal object.
    static final int
    The 'POST' literal value.
    static final MethodType
    The 'POST' literal object.
    static final List
    A public read-only list of all the 'Method Type' enumerators.
  • Method Summary

    Modifier and Type
    Method
    Description
    static MethodType
    get(int value)
    Returns the 'Method Type' literal with the specified integer value.
    static MethodType
    get(String literal)
    Returns the 'Method Type' literal with the specified literal value.
    static MethodType
    Returns the 'Method Type' literal with the specified name.

    Methods inherited from class AbstractEnumerator

    getLiteral, getName, getValue, toString, writeReplace

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • GET

      public static final int GET
      The 'GET' literal value.

      If the meaning of 'GET' literal object isn't clear, there really should be more of a description here...

      See Also:
    • POST

      public static final int POST
      The 'POST' literal value.

      If the meaning of 'POST' literal object isn't clear, there really should be more of a description here...

      See Also:
    • GET_LITERAL

      public static final MethodType GET_LITERAL
      The 'GET' literal object.
      See Also:
    • POST_LITERAL

      public static final MethodType POST_LITERAL
      The 'POST' literal object.
      See Also:
    • VALUES

      public static final List VALUES
      A public read-only list of all the 'Method Type' enumerators.
  • Method Details

    • get

      public static MethodType get(String literal)
      Returns the 'Method Type' literal with the specified literal value.
      Parameters:
      literal - the literal.
      Returns:
      the matching enumerator or null.
    • getByName

      public static MethodType getByName(String name)
      Returns the 'Method Type' literal with the specified name.
      Parameters:
      name - the name.
      Returns:
      the matching enumerator or null.
    • get

      public static MethodType get(int value)
      Returns the 'Method Type' literal with the specified integer value.
      Parameters:
      value - the integer value.
      Returns:
      the matching enumerator or null.