Domanda di colloquio di 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")

Risposta di colloquio

Anonimo

13 ott 2014

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