Interface Constant<T extends Constant<T>>

All Superinterfaces:
Comparable<T>
All Known Implementing Classes:
AbstractConstant, Signal

public interface Constant<T extends Constant<T>> extends Comparable<T>
A singleton which is safe to compare via the == operator. Created and managed by ConstantPool.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    id()
    Returns the unique number assigned to this Constant.
    Returns the name of this Constant.

    Methods inherited from interface java.lang.Comparable

    compareTo
  • Method Details

    • id

      int id()
      Returns the unique number assigned to this Constant.
    • name

      String name()
      Returns the name of this Constant.