public enum SerializationMode extends Enum<SerializationMode>
Enum Constant and Description |
---|
FORCE
FORCE is the value for serialization of the pool with or without serializable
objects. |
NONE
NONE is the value for serialization of the pool without the objects. |
STANDARD
STANDARD is the value for the standard serialization of the pool with its objects. |
Modifier and Type | Method and Description |
---|---|
static SerializationMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SerializationMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SerializationMode FORCE
FORCE
is the value for serialization of the pool with or without serializable
objects. If the objects cannot be serialized, the pool is empty after serialization and must be populated again.public static final SerializationMode STANDARD
STANDARD
is the value for the standard serialization of the pool with its objects.
If the objects cannot be serialized, a NotSerializableException
is thrown.public static final SerializationMode NONE
NONE
is the value for serialization of the pool without the objects. The pool is
empty after serialization and must be populated again.public static SerializationMode[] values()
for (SerializationMode c : SerializationMode.values()) System.out.println(c);
public static SerializationMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2005–2023 Codehaus. All rights reserved.