Support advanced search in Card list choosers

This commit is contained in:
drdev
2015-09-06 19:53:05 +00:00
parent 5e6f7453ef
commit 0282f861ef
6 changed files with 156 additions and 23 deletions

View File

@@ -303,6 +303,9 @@ public final class ColorSet implements Comparable<ColorSet>, Iterable<Byte>, Ser
}
public Set<Color> toEnumSet() {
if (isColorless()) {
return EnumSet.of(Color.COLORLESS);
}
List<Color> list = new ArrayList<Color>();
for (Color c : Color.values()) {
if (hasAnyColor(c.getColormask())) {