mardi 21 juin 2016

which is the Best Design Pattern for Multiple sort of the collection

I had a list of object which i need to sort with mulitiple criteria within each of the output of a single criteria. e.g Employee Class having field with EmploymentType, CategoryType, DepartmentType, Retirement date, employeeid. so now i want to sort the list of epmloyee on the basis of employmentType within which i need to sort on categoryType within sort by department within retirement date within employid .so just want to know which of the java design pattern i can use here ?

Aucun commentaire:

Enregistrer un commentaire