I have two different List
objects and I want to get a merged List of two objects based on a common attribute of those two objects and the new list should contain only the common objects. The size of both objects also varies.
My first object:
ObjectA(distance,remainingtime,msg1_received_time)
ObjectB(remainingtime,msg1_decoding_time,phase)
And I want to have a List
with values where only the remainingtime is same in both cases.Can someone please guide me?