I have an enum and I want to pull all of the enum's options in a priority queue in their natural order priority. Is there a way to do this without adding them one by one. There has to be a one liner I'm missing... Thanks!
Asked
Active
Viewed 470 times
0
-
1For a `List`: https://stackoverflow.com/questions/29465943/get-enum-values-as-list-of-string-in-java-8/29465971 – PM 77-1 May 31 '19 at 20:33
-
That'll do it. Not sure how I missed that... – Hackerman May 31 '19 at 20:39
-
1@Hackerman I deleted my answer because you and PM77-1 were spot on. Haven't had my coffee today :) – Not a JD May 31 '19 at 20:45