public Tags filter ( Set < String > tag_names ) { return Tags . valueOf ( tags_ . entrySet ( ) . stream ( ) . filter ( entry -> tag_names . contains ( entry . getKey ( ) ) ) ) ; }
Reduce the list of tags to only those specified in the argument set .