Class EnumToolkit

  • All Implemented Interfaces:

    
    public class EnumToolkit
    
                        
    Author:

    Toutatis_Gc

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      EnumToolkit()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static <T extends Enum<T>> T getValue(Class<T> clazz, String name)
      static <T extends Enum<T>> T getValue(Class<T> clazz, String name, Boolean nullIsNormal)
      • Methods inherited from class java.lang.Object

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

      • EnumToolkit

        EnumToolkit()
    • Method Detail

      • getValue

         static <T extends Enum<T>> T getValue(Class<T> clazz, String name, Boolean nullIsNormal)
        Parameters:
        clazz - 转换类
        name - 字面值
        nullIsNormal - 无字面值可以返回null
        Returns:

        字符串转枚举值