In this article, we will see how to use implement our custom generic type in java programming.
Earlier articles, we had seen how to use generics and collections. In this intermediate level article, we will create our custom class for sorting our objects in list collection. We will override method and inherit from compare to have our custom sort method.
Lets see it in an example:
CL_servers ... implements Comparator .. genericType
Lets see it in a java example.
In above example, we created our custom sortable class structure with generic and collections in use.