Say I have an list of objects with two fields field1 and field2, both of String type.
field1
field2
How do I get a list of all field1 values wit
No, you can't. You have to traverse the whole list and get each "field1" value from each object.