Sollicitatievraag bij DataArt

Create a java class implementing interface Comparator to sort a collection of objects of arbitrary class. The sorting field should be specified by string passed as constructor parameter (f.e. "object_name.field_name")

Antwoord op sollicitatievraag

Anoniem

13 okt 2014

Java reflection + recursive method to sort recursive structure, like "parent_object_name.childobkect_name.field_name".