Interface ConstantEnum

  • All Implemented Interfaces:

    
    public interface ConstantEnum
    
                        
    Constant enum for programming convenience, to be consistent with sys_constant_enum in database.
    
    `SUPER`, a convention value, represents this group and has 3 characteristics
    - the name is `SUPER`
    - `id` ends with `00`
    - `code` is either `id` or `code`
    
    Since:

    2019-09-17

    Author:

    trydofor

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract int getId() dynamic id has 9+ digits, static id has 8 digits; `3-2-2` segmentation recommended (table-group-value); `00` ending is SUPER
      String getType() Enum grouping: same type for same enum, auto Pascal naming
      String getInfo()
      boolean isSuper() Whether end with `00`
      boolean sameSuper(long id) Whether in same Super (same group)
      boolean sameSuper(ConstantEnum e)
      int getSuperId()
      boolean isStandard() Whether a standard database compatible x-2-2 format
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • getId

         abstract int getId()

        dynamic id has 9+ digits, static id has 8 digits; `3-2-2` segmentation recommended (table-group-value); `00` ending is SUPER

      • getType

        @NotNull() String getType()

        Enum grouping: same type for same enum, auto Pascal naming

      • isSuper

         boolean isSuper()

        Whether end with `00`

      • sameSuper

         boolean sameSuper(long id)

        Whether in same Super (same group)

      • isStandard

         boolean isStandard()

        Whether a standard database compatible x-2-2 format