Enum Class SheetEnum

java.lang.Object
java.lang.Enum<SheetEnum>
cn.sinozg.applet.tool.enums.SheetEnum
All Implemented Interfaces:
Serializable, Comparable<SheetEnum>, Constable

public enum SheetEnum extends Enum<SheetEnum>
Since:
2025-03-17 21:43:41
Author:
xyb
  • Enum Constant Details

  • Field Details

    • sheetNo

      private final int sheetNo
    • type

      private final String type
  • Constructor Details

    • SheetEnum

      private SheetEnum(int sheetNo, String type)
  • Method Details

    • values

      public static SheetEnum[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SheetEnum valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • ofCode

      public static SheetEnum ofCode(int sheetNo)
    • getSheetNo

      public int getSheetNo()
    • getType

      public String getType()