Skip to content

Commit

Permalink
Merge pull request #173 from TheHaf-at-FraunhoferIOSB/patch-addThemeM…
Browse files Browse the repository at this point in the history
…atchers

Add missing matcher methods for themes to Java API
  • Loading branch information
mvysny committed May 8, 2024
2 parents d09af96 + 57f280d commit 3c8192b
Showing 1 changed file with 22 additions and 0 deletions.
Expand Up @@ -149,6 +149,28 @@ public SearchSpecJ<T> withoutClasses(@Nullable String classes) {
return this;
}

/**
* If not null, the component must match all of these themes. Space-separated.
* @param themes expected space-separated themes.
* @return this
*/
@NotNull
public SearchSpecJ<T> withThemes(@Nullable String themes) {
spec.setThemes(themes);
return this;
}

/**
* If not null, the component must NOT match any of these themes. Space-separated.
* @param themes space-separated themes, neither of which must be present on the component.
* @return this
*/
@NotNull
public SearchSpecJ<T> withoutThemes(@Nullable String themes) {
spec.setWithoutThemes(themes);
return this;
}

/**
* Adds additional predicate which the component needs to match. Not null.
* <p/>
Expand Down

0 comments on commit 3c8192b

Please sign in to comment.