Java Utililty Methods Is Serializable Object

List of utility methods to do Is Serializable Object

Description

The list of methods to do Is Serializable Object are organized into topic(s).

Method

booleanisSerializable(Object obj)
Verify that an object is Serializable by attempting to serialize it.
return isSerializable(obj, false);
booleanisSerializable(Object object)
is Serializable
if (object instanceof Map.Entry)
    return isSerializable(((Map.Entry) object).getKey()) && isSerializable(((Map.Entry) object).getValue());
if (object == null)
    return true;
if (object instanceof String)
    return true;
if (object instanceof Number)
    return true;
...
booleanisSerializableType(Class type)
Checks if is serializable type.
if (Void.class.isAssignableFrom(type)) {
    return true;
if (Object.class.isAssignableFrom(type) && !Serializable.class.isAssignableFrom(type)) {
    return false;
return true;