java list of a class has a string that is equal to code example
Example: java list of a class has a string that is equal to
public boolean containsName(final List list, final String name){
return list.stream().map(MyObject::getName).filter(name::equals).findFirst().isPresent();
}