class RecentTagCollection extends java.lang.Object
PropertiesDialog
.Modifier and Type | Class and Description |
---|---|
(package private) static class |
RecentTagCollection.LruCache
LRU cache for recently added tags (http://java-planet.blogspot.com/2005/08/how-to-set-up-simple-lru-cache-using.html)
|
Modifier and Type | Field and Description |
---|---|
private java.util.Map<Tag,java.lang.Void> |
recentTags |
private SearchCompiler.Match |
tagsToIgnore |
Constructor and Description |
---|
RecentTagCollection(int capacity) |
Modifier and Type | Method and Description |
---|---|
void |
add(Tag tag) |
SearchSetting |
ignoreTag(Tag tagToIgnore,
SearchSetting settingToUpdate) |
boolean |
isEmpty() |
void |
loadFromPreference(ListProperty property) |
void |
saveToPreference(ListProperty property) |
void |
setTagsToIgnore(SearchCompiler.Match tagsToIgnore) |
void |
setTagsToIgnore(SearchSetting tagsToIgnore) |
java.util.List<Tag> |
toList() |
private final java.util.Map<Tag,java.lang.Void> recentTags
private SearchCompiler.Match tagsToIgnore
RecentTagCollection(int capacity)
public void loadFromPreference(ListProperty property)
public void saveToPreference(ListProperty property)
public boolean isEmpty()
public void setTagsToIgnore(SearchCompiler.Match tagsToIgnore)
public void setTagsToIgnore(SearchSetting tagsToIgnore) throws SearchParseError
SearchParseError
public SearchSetting ignoreTag(Tag tagToIgnore, SearchSetting settingToUpdate) throws SearchParseError
SearchParseError