Collectios provide the following collection types:
CollectiosList - analogous to ArrayList
CollectioMap - analogous to HashMap
CollectiosSet - analogous to HashSet
Step 1: Add to maven dependencies
<dependency>
<groupId>com.github.elvinmahmudov</groupId>
<artifactId>collectios</artifactId>
<version>1.1</version>
</dependency>
Step 2: Start using Collectios
public class Main {
public static void main(String[] args) {
CList<String> list = CollectiosList.empty();
list = list.add("first");
System.out.println(list);
System.out.println(list.add("second");
System.out.println(list);
}
}
The output will be:
[first]
[first, second]
[first]