19 package org.turro.skills.tags;
21 import java.util.Collection;
22 import java.util.Collections;
23 import java.util.List;
25 import java.util.TreeSet;
26 import java.util.stream.Collectors;
27 import org.turro.marker.MarkerHelper;
33 public class SkillSet extends TreeSet<SkillItem> {
35 public SkillSet(Collection<? extends SkillItem> c) {
39 public void select(String skillName) {
55 public void toggle(String skillName) {
93 return new TreeSet(stream().map(t -> t.getSkillName()).collect(Collectors.toSet()));
97 return new TreeSet(stream().filter(t -> t.isSelected()).collect(Collectors.toSet()));
101 return new TreeSet(stream().filter(t -> !t.isSelected()).collect(Collectors.toSet()));
105 return new TreeSet(stream().filter(t -> t.isSelected()).map(t -> t.getSkillName()).collect(Collectors.toSet()));
109 return new TreeSet(stream().filter(t -> !t.isSelected()).map(t -> t.getSkillName()).collect(Collectors.toSet()));
113 return stream().mapToLong(t -> t.getUsage()).max().orElse(0);
118 if(!(
set ==
null &&
set.isEmpty())) {
121 return Collections.EMPTY_LIST;
127 tag.setSibling(siblings.contains(tag));
132 return new SkillSet(Collections.EMPTY_SET);
static String setObfuscatedRightNowPars(String parameters)