Interface Tags
-
public interface Tags
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidadd(String value)Adds new tagCollection<Tag>get()Returns current collection of tags.Tagget(String id)Retrieves tag with given id or null if no tag with given id existsbooleanremove(String id)Removes the tag associated with given idCollection<String>values()Returns current collection of tag values.
-
-
-
Method Detail
-
values
Collection<String> values()
Returns current collection of tag values.- Returns:
- collection of tag values
-
add
void add(String value)
Adds new tag- Parameters:
tag- new tag to be added
-
get
Collection<Tag> get()
Returns current collection of tags.- Returns:
- collection of tags
-
get
Tag get(String id)
Retrieves tag with given id or null if no tag with given id exists- Parameters:
id- identifier of the tag- Returns:
- tag associated with given id or null
-
remove
boolean remove(String id)
Removes the tag associated with given id- Parameters:
id- identifier of the tag
-
-