This post originated from an RSS feed registered with Java Buzz
by josef betancourt.
Original Post: Java fluent inline map initialization
Feed Title: T. C. Mits
Feed URL: http://octodecillion.com/feed/
Feed Description: Java development and other technology topics
This is a common task, and there are many good and bad solutions out there. Java 8 even has a “Supplier” that can assist with inline map initializations. Unfortunately, Java does not have a simple method like that found in the Groovy language. A map in Groovy is: def map = [name: ‘Gromit’, likes: ‘cheese’, … Continue reading Java fluent inline map initialization→