I have a linked list with object person.
Class person{
int age;
String name;
String address
}
Now, I want to check if object is contained in the list. But my problem, is that only some fields are relevant. For example, I want to check if the person: tony, age 18 is contained in the list.
Are list support it? If not, which data structure support it?