Writing (Slightly) Cleaner Code With Collections and Optionals
Kilo is an open-source project for creating and consuming RESTful and REST-like web services in Java. Among other things, it includes the Collections and Optionals classes, which are designed to help simplify code that depends on collection types and optional values, respectively. Both are discussed in more detail below.
Collections
Kilo’s Collections class provides a set of static utility methods for declaratively instantiating list, map, and set values:
![]()
