This commit is contained in:
Reinhard Pointner 2016-04-23 00:05:50 +08:00
parent 042c380410
commit df79418064
1 changed files with 4 additions and 0 deletions

View File

@ -54,6 +54,10 @@ public class Artwork implements Serializable {
}
public boolean matches(Object... tags) {
if (tags == null || tags.length == 0) {
return true;
}
return stream(tags).filter(Objects::nonNull).map(Object::toString).allMatch(tag -> {
return stream(this.tags).anyMatch(tag::equalsIgnoreCase) || tag.equalsIgnoreCase(language);
});