enum class Types(val value: Int) { FOO(1), BAR(2), FOO_BAR(3); ... A String isn't an Int; types matter. ... getByValue(1234) from Java) over Types.FOO.
確定! 回上一頁