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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eCategory\u003c/code\u003e class represents a tag, which is a descriptive word or phrase that can be applied to entities for various purposes like querying, ranking, and clustering.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements \u003ccode\u003eSerializable\u003c/code\u003e and \u003ccode\u003eComparable<Category>\u003c/code\u003e, and inherits from \u003ccode\u003ejava.lang.Object\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCategory\u003c/code\u003e class provides methods to compare categories (\u003ccode\u003ecompareTo\u003c/code\u003e), check for equality (\u003ccode\u003eequals\u003c/code\u003e), retrieve the category string (\u003ccode\u003egetCategory\u003c/code\u003e), and get its hash code (\u003ccode\u003ehashCode\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eIt also has a constructor \u003ccode\u003eCategory(String category)\u003c/code\u003e that takes a string parameter to create a category.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes a static field, \u003ccode\u003eserialVersionUID\u003c/code\u003e, of type long.\u003c/p\u003e\n"]]],[],null,["# Class Category (2.0.0)\n\n public final class Category implements Serializable, Comparable\u003cCategory\u003e\n\nA tag, ie a descriptive word or phrase. Entities may be tagged by users, and later returned by a\nqueries for that tag. Tags can also be used for ranking results (frequency), photo captions,\nclustering, activity, etc.\nSee Also: [Jeffrey Zeldmans blog post](http://www.zeldman.com/daily/0405d.shtml) on tag clouds for a more in-depth description. \n\nInheritance\n-----------\n\n[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \\\u003e Category \n\nImplements\n----------\n\n[Serializable](https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html), [Comparable\\\u003cCategory\\\u003e](https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable\u003ccom/google/appengine/api/datastore/Category\u003e.html) \n\nInherited Members\n-----------------\n\n[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) \n[Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) \n[Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) \n[Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) \n[Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) \n[Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) \n[Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) \n[Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) \n[Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)\n\nStatic Fields\n-------------\n\n### serialVersionUID\n\n public static final long serialVersionUID\n\nConstructors\n------------\n\n### Category(String category)\n\n public Category(String category)\n\nMethods\n-------\n\n### compareTo(Category o)\n\n public int compareTo(Category o)\n\n### equals(@Nullable Object o)\n\n public boolean equals(@Nullable Object o)\n\n**Overrides** \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-)\n\n### getCategory()\n\n public String getCategory()\n\n### hashCode()\n\n public int hashCode()\n\n**Overrides** \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--)"]]