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 Summary
Enum Constants Enum Constant Description INSTANCE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CommentContextKey
deserialize(byte[] in)
byte[]
serialize(CommentContextKey key)
static CommentContextKey.Serializer
valueOf(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
-
INSTANCE
public static final CommentContextKey.Serializer INSTANCE
-
-
Method Detail
-
values
public 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
-
valueOf
public 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 nameNullPointerException
- if the argument is null
-
serialize
public byte[] serialize(CommentContextKey key)
- Specified by:
serialize
in interfacecom.google.gerrit.server.cache.serialize.CacheSerializer<CommentContextKey>
-
deserialize
public CommentContextKey deserialize(byte[] in)
- Specified by:
deserialize
in interfacecom.google.gerrit.server.cache.serialize.CacheSerializer<CommentContextKey>
-
-