|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.ecm.platform.tag.Tag
public class Tag
Aggregates a tag with its weight.
Field Summary | |
---|---|
String |
label
The tag label. |
static Comparator<Tag> |
LABEL_COMPARATOR
Compare tags by label, case insensitive. |
long |
weight
The weight of the tag. |
static Comparator<Tag> |
WEIGHT_COMPARATOR
Compare tags by weight, decreasing. |
Constructor Summary | |
---|---|
Tag(String label,
int weight)
|
Method Summary | |
---|---|
String |
getLabel()
|
long |
getWeight()
|
void |
setWeight(long weight)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final String label
public long weight
public static final Comparator<Tag> LABEL_COMPARATOR
public static final Comparator<Tag> WEIGHT_COMPARATOR
Constructor Detail |
---|
public Tag(String label, int weight)
Method Detail |
---|
public String getLabel()
public long getWeight()
public void setWeight(long weight)
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |