Skip to content

Commit

Permalink
fix: Change defaults definition for PlayerLookup.Query
Browse files Browse the repository at this point in the history
  • Loading branch information
phinner committed Apr 23, 2024
1 parent aa95634 commit 42e0a43
Showing 1 changed file with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,20 @@ static Query of(final String input) {
}

static Query.Builder builder() {
return QueryImpl.builder()
.setFields(EnumSet.of(Field.NAME, Field.ENTITY_ID))
.setMatchExact(true);
return QueryImpl.builder();
}

String getInput();

Set<Field> getFields();
@Value.Default
default Set<Field> getFields() {
return EnumSet.of(Field.NAME, Field.ENTITY_ID);
}

boolean isMatchExact();
@Value.Default
default boolean isMatchExact() {
return true;
}

sealed interface Builder permits QueryImpl.Builder {

Expand Down

0 comments on commit 42e0a43

Please sign in to comment.