How to check contains in lambda stream?

后端 未结 0 558
说谎
说谎 2021-01-26 02:36
Optional.of(entity).map(Entity::getInfo).map(EntityInfo::getTags).map(List::contains(Tag.BLACKLIST))
   

But I got: Non-static method cannot be referenc

相关标签:
回答
  • 消灭零回复
提交回复
热议问题