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:
<
I would just write,
Arrays.stream(Choice.values()).map(Enum::name).collect(Collectors.toList()).contains("a1");
Enum#equals only works with object compare.