How to create an empty collection object?
Sometimes you need to return an empty collection from your Java methods. Java java.util.Collections class have three different static instances for creating empty List, Set and Map. There are also methods when you want to create type-safe empty collections. Bellow it the code example.