Skip to main content

All Questions

Filter by
Sorted by
Tagged with
1 vote
2 answers
125 views

Performant functional evaluation for enum value

I have a Java enum which represents the side of an order (enum Side {ASK, BID}) and I'm constantly writing code with which I'd like to use the ternary operator, e.g....
John Dorian's user avatar