Given an enum like enum MyEnum {"ALPHA", "BRAVO", "CHARLIE"} ; ... Yup. You could call Arrays.asList, and then call list.contains.
確定! 回上一頁