Interface IntegerValue

All Known Implementing Classes:
CheckinPolicy, ConstraintsValidationPolicy, DeleteVersionPolicy, MediaUrlPolicy, QueryType, RelationRole

public interface IntegerValue
A unified interface for enum type with integer type value to implement. Here is a scenario. If enum type implements this interface, IntegerEnum.valueMap(Class) can generate (value, constant name) map for the enum.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the integer value of the enum constant
  • Method Details

    • value

      int value()
      Returns the integer value of the enum constant
      Returns:
      the integer value of the enum constant