19 package org.turro.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 TagSet extends TreeSet<TagItem> {
35 public TagSet(Collection<? extends TagItem> c) {
93 return new TreeSet(stream().map(t -> t.getTagName()).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.getTagName()).collect(Collectors.toSet()));
109 return new TreeSet(stream().filter(t -> !t.isSelected()).map(t -> t.getTagName()).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 TagSet(Collections.EMPTY_SET);
static String setObfuscatedRightNowPars(String parameters)