Class Category (2.0.0)

public final class Category implements Serializable, Comparable<Category>

A tag, ie a descriptive word or phrase. Entities may be tagged by users, and later returned by a queries for that tag. Tags can also be used for ranking results (frequency), photo captions, clustering, activity, etc. See Also: Jeffrey Zeldmans blog post on tag clouds for a more in-depth description.

Inheritance

java.lang.Object > Category

Static Fields

serialVersionUID

public static final long serialVersionUID
Field Value
TypeDescription
long

Constructors

Category(String category)

public Category(String category)
Parameter
NameDescription
categoryString

Methods

compareTo(Category o)

public int compareTo(Category o)
Parameter
NameDescription
oCategory
Returns
TypeDescription
int

equals(@Nullable Object o)

public boolean equals(@Nullable Object o)
Parameter
NameDescription
o@org.checkerframework.checker.nullness.qual.Nullable java.lang.Object
Returns
TypeDescription
boolean
Overrides

getCategory()

public String getCategory()
Returns
TypeDescription
String

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides