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