Package com.google.gerrit.server.comment
Enum CommentContextKey.Serializer
- java.lang.Object
- 
- java.lang.Enum<CommentContextKey.Serializer>
- 
- com.google.gerrit.server.comment.CommentContextKey.Serializer
 
 
- 
- All Implemented Interfaces:
- com.google.gerrit.server.cache.serialize.CacheSerializer<CommentContextKey>,- Serializable,- Comparable<CommentContextKey.Serializer>
 - Enclosing class:
- CommentContextKey
 
 public static enum CommentContextKey.Serializer extends Enum<CommentContextKey.Serializer> implements com.google.gerrit.server.cache.serialize.CacheSerializer<CommentContextKey> 
- 
- 
Enum Constant SummaryEnum Constants Enum Constant Description INSTANCE
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CommentContextKeydeserialize(byte[] in)byte[]serialize(CommentContextKey key)static CommentContextKey.SerializervalueOf(String name)Returns the enum constant of this type with the specified name.static CommentContextKey.Serializer[]values()Returns an array containing the constants of this enum type, in the order they are declared.
 
- 
- 
- 
Enum Constant Detail- 
INSTANCEpublic static final CommentContextKey.Serializer INSTANCE 
 
- 
 - 
Method Detail- 
valuespublic static CommentContextKey.Serializer[] values() Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CommentContextKey.Serializer c : CommentContextKey.Serializer.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic static CommentContextKey.Serializer valueOf(String name) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum type has no constant with the specified name
- NullPointerException- if the argument is null
 
 - 
serializepublic byte[] serialize(CommentContextKey key) - Specified by:
- serializein interface- com.google.gerrit.server.cache.serialize.CacheSerializer<CommentContextKey>
 
 - 
deserializepublic CommentContextKey deserialize(byte[] in) - Specified by:
- deserializein interface- com.google.gerrit.server.cache.serialize.CacheSerializer<CommentContextKey>
 
 
- 
 
-