Skip to content

Commit ed1e54c

Browse files
committed
toString() will return a plain list of filters in the group (without '[]' parenthesis)
1 parent b8b3be5 commit ed1e54c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

beacon-framework/src/main/java/es/bsc/inb/ga4gh/beacon/framework/model/v200/requests/BeaconQueryFilterGroup.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727

2828
import java.util.ArrayList;
2929
import java.util.List;
30+
import java.util.stream.Collectors;
3031

3132
/**
3233
* Logical 'OR' query filters group.
@@ -37,4 +38,9 @@
3738
public class BeaconQueryFilterGroup extends ArrayList<BeaconQueryFilter>
3839
implements List<BeaconQueryFilter>, BeaconQueryFilterGroupInterface {
3940

41+
@Override
42+
public String toString() {
43+
return this.stream().map(BeaconQueryFilterGroupInterface::toString)
44+
.collect(Collectors.joining(", "));
45+
}
4046
}

0 commit comments

Comments
 (0)