I have lists of different classes, say A and B respectively. Definition of these classes is as follows-
class A {
int field1;
int field2;
}
class B {
int field1;
int field3;
}
class C {
int field1;
int field2;
int field3;
}
I want to perform a join operation (similar to database join) on A and B, over field1 and populate the result in C.
I can iterate over the lists and do it. But, just wanted to check whether there are any library methods which does similar sort of thing.