This Recursion class have two methods to do with List in recursive way :
public static uniqueAll(List list)
is the method for removing all duplicates Object in the List.public static unique(List list)
is the method for remove all consecutive duplicates Object in the List.