Frage im Vorstellungsgespräch bei 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")

Antwort im Vorstellungsgespräch

Anonym

13. Okt. 2014

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