Condition:
Entity A and B are father and son relationship. Entities inherited entity a. B
Entity B does not have its own parameters and methods, fully inherited A
How to compare List And List Two set the same? And want to do one thing in common, the method of the type of A and B are not fixed,
For example, can be a TeamA, TeamB, also can be UserA, UserB, meet the above conditions,
Question:
Due to A and B do not match the address, so use the contains related methods, return is false, the problem here,