I want to keep only a few properties of an object.
Lets say I have List of objects, List<Employee> and Employee data class has some 10 properties.
From the List, I would want to keep only 3-4 properties and filter out rest.
How can that be achieved in Java or Kotlin?
TIA