4 ms·
you have to create a whole new file with your sort functor. You don't. You can use an inner class. An anonymous one, if you like. It's more verbose than your t
by pvg 17y ago
you have to create a whole new file with your sort functor.
You don't. You can use an inner class. An anonymous one, if you like. It's more verbose than your typical lambda expression but it's not 'a whole new file' by any stretch.
- _delirium 17y agoAh right, I'm not sure why that skipped my mind; I've even done that before. I suppose that adds to the general view of the linked post that Java-the-language isn't actually inherently that verbose, but the JVM APIs are.