Interface Enumerator

All Known Implementing Classes:
AbstractEnumerator

public interface Enumerator
An interface implemented by the enumerators of a type-safe enum.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the literal value of the enumerator.
    Returns the name of the enumerator.
    int
    Returns the intvalue of the enumerator.
  • Method Details

    • getName

      String getName()
      Returns the name of the enumerator.
      Returns:
      the name.
    • getValue

      int getValue()
      Returns the intvalue of the enumerator.
      Returns:
      the value.
    • getLiteral

      String getLiteral()
      Returns the literal value of the enumerator.
      Returns:
      the literal.