Here\'s my problem - I\'m looking for (if it even exists) the enum equivalent of ArrayList.contains();.
ArrayList.contains();
Here\'s a sample of my code problem:
<
Like e.g. this:
enum MyData { ONE, TWO } @Test public void test() { if (!Enums.getIfPresent(MyData.class, "THREE").isPresent()) { System.out.println("THREE is not here"); } }