T - the enum type.public static final class EnumSerializer.EnumSerializerConfigSnapshot<T extends Enum<T>> extends GenericTypeSerializerConfigSnapshot<T>
| Constructor and Description |
|---|
EnumSerializerConfigSnapshot()
This empty nullary constructor is required for deserializing the configuration.
|
EnumSerializerConfigSnapshot(Class<T> enumClass,
T[] enumConstantsArr) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int[] |
getCompatibleVersions()
Returns the compatible version values.
|
List<String> |
getEnumConstants() |
int |
getVersion()
Returns the version number of the object.
|
int |
hashCode() |
void |
read(DataInputView in)
Reads the object's internal data from the given data input view.
|
void |
write(DataOutputView out)
Writes the object's internal data to the given data output view.
|
getTypeClassgetUserCodeClassLoader, setUserCodeClassLoadergetReadVersionpublic EnumSerializerConfigSnapshot()
public void write(DataOutputView out) throws IOException
IOReadableWritablewrite in interface IOReadableWritablewrite in class GenericTypeSerializerConfigSnapshot<T extends Enum<T>>out - the output view to receive the data.IOException - thrown if any error occurs while writing to the output streampublic void read(DataInputView in) throws IOException
IOReadableWritableread in interface IOReadableWritableread in class GenericTypeSerializerConfigSnapshot<T extends Enum<T>>in - the input view to read the data fromIOException - thrown if any error occurs while reading from the input streampublic int getVersion()
Versionedpublic int[] getCompatibleVersions()
VersionedIOReadableWritableBy default, the base implementation recognizes only the current version (identified by Versioned.getVersion())
as compatible. This method can be used as a hook and may be overridden to identify more compatible versions.
getCompatibleVersions in class VersionedIOReadableWritablepublic boolean equals(Object obj)
equals in class GenericTypeSerializerConfigSnapshot<T extends Enum<T>>public int hashCode()
hashCode in class GenericTypeSerializerConfigSnapshot<T extends Enum<T>>Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.