Which usage is preferred Enum.values() or Enum.class.getEnumConstants()?

前端 未结 0 1103
猫巷女王i
猫巷女王i 2021-02-12 13:07

To get the array of enum constants of some Enum type TestEnum, we have two options - TestEnum.values() or TestEnum.clas

相关标签:
回答
  • 消灭零回复
提交回复
热议问题