|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.linkedin.glu.utils.tags.FilteredTaggeable
public class FilteredTaggeable
| Field Summary |
|---|
| Fields inherited from interface org.linkedin.glu.utils.tags.ReadOnlyTaggeable |
|---|
EMPTY |
| Constructor Summary | |
|---|---|
FilteredTaggeable(Taggeable taggeable)
Constructor |
|
| Method Summary | |
|---|---|
boolean |
addTag(java.lang.String tag)
Adds a tag. |
java.util.Set<java.lang.String> |
addTags(java.util.Collection<java.lang.String> tags)
Adds all the tags. |
java.util.Set<java.lang.String> |
getCommonTags(java.util.Collection<java.lang.String> tags)
|
java.util.Set<java.lang.String> |
getMissingTags(java.util.Collection<java.lang.String> tags)
|
Taggeable |
getTaggeable()
|
java.util.Set<java.lang.String> |
getTags()
|
int |
getTagsCount()
|
boolean |
hasAllTags(java.util.Collection<java.lang.String> tags)
|
boolean |
hasAnyTag(java.util.Collection<java.lang.String> tags)
|
boolean |
hasTag(java.lang.String tag)
|
boolean |
hasTags()
|
boolean |
removeTag(java.lang.String tag)
Removes the provided tag. |
java.util.Set<java.lang.String> |
removeTags(java.util.Collection<java.lang.String> tags)
Removes all the tags. |
void |
setTags(java.util.Collection<java.lang.String> tags)
Allow you to set the exact set of tags you want. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FilteredTaggeable(Taggeable taggeable)
| Method Detail |
|---|
public Taggeable getTaggeable()
public int getTagsCount()
getTagsCount in interface ReadOnlyTaggeablepublic boolean hasTags()
hasTags in interface ReadOnlyTaggeabletrue if there are no tagspublic java.util.Set<java.lang.String> getTags()
getTags in interface ReadOnlyTaggeablepublic boolean hasTag(java.lang.String tag)
hasTag in interface ReadOnlyTaggeabletrue if the given tag is presentpublic boolean hasAllTags(java.util.Collection<java.lang.String> tags)
hasAllTags in interface ReadOnlyTaggeabletrue if the given tags are present (all of them)public boolean hasAnyTag(java.util.Collection<java.lang.String> tags)
hasAnyTag in interface ReadOnlyTaggeabletrue if at least one of them is presentpublic java.util.Set<java.lang.String> getCommonTags(java.util.Collection<java.lang.String> tags)
getCommonTags in interface ReadOnlyTaggeablepublic java.util.Set<java.lang.String> getMissingTags(java.util.Collection<java.lang.String> tags)
getMissingTags in interface ReadOnlyTaggeablepublic boolean addTag(java.lang.String tag)
WriteOnlyTaggeable
addTag in interface WriteOnlyTaggeabletrue if the tag which was added was a new tag, otherwise
falsepublic java.util.Set<java.lang.String> addTags(java.util.Collection<java.lang.String> tags)
WriteOnlyTaggeable
addTags in interface WriteOnlyTaggeablepublic boolean removeTag(java.lang.String tag)
WriteOnlyTaggeable
removeTag in interface WriteOnlyTaggeabletrue if the tag was removed or false if the tag was not
present in the first placepublic java.util.Set<java.lang.String> removeTags(java.util.Collection<java.lang.String> tags)
WriteOnlyTaggeable
removeTags in interface WriteOnlyTaggeablepublic void setTags(java.util.Collection<java.lang.String> tags)
WriteOnlyTaggeableremoveTags(getTags()) addTags(tags)
setTags in interface WriteOnlyTaggeabletags - tags to set
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||