Package com.tagtraum.beatunes.library
Class Tag
- java.lang.Object
-
- com.tagtraum.beatunes.library.Tag
-
- All Implemented Interfaces:
Comparable<Tag>
@Entity public class Tag extends Object implements Comparable<Tag>
Tag.- Author:
- Hendrik Schreiber
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(Tag that)
boolean
equals(Object obj)
int
getGroup(int numberOfGroups)
long
getId()
String
getName()
String
getQuotedName()
int
getStrength()
TagCollection
getTagCollection()
int
hashCode()
void
setName(String name)
void
setStrength(int strength)
void
setTagCollection(TagCollection tagCollection)
static SortedSet<String>
toSortedStringSet(Collection<Tag> tags)
String
toString()
-
-
-
Constructor Detail
-
Tag
public Tag()
-
Tag
public Tag(String name)
-
-
Method Detail
-
getGroup
public int getGroup(int numberOfGroups)
-
getId
public long getId()
-
getTagCollection
public TagCollection getTagCollection()
-
setTagCollection
public void setTagCollection(TagCollection tagCollection)
-
getName
public String getName()
-
setName
public void setName(String name)
-
getQuotedName
public String getQuotedName()
-
getStrength
public int getStrength()
-
setStrength
public void setStrength(int strength)
-
compareTo
public int compareTo(Tag that)
- Specified by:
compareTo
in interfaceComparable<Tag>
-
toSortedStringSet
public static SortedSet<String> toSortedStringSet(Collection<Tag> tags)
-
-