Java Is Serializable Object isSerializable(final Object c)

Here you can find the source of isSerializable(final Object c)

Description

is Serializable

License

Apache License

Declaration

public static boolean isSerializable(final Object c) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.io.Serializable;

public class Main {
    public static boolean isSerializable(final Class c) {
        return (Serializable.class.isAssignableFrom(c));
    }//from w w  w.  ja  v  a 2 s . com

    public static boolean isSerializable(final Object c) {
        return isSerializable(c.getClass());
    }
}

Related

  1. isSerializable(Class c)
  2. isSerializable(Class clazz)
  3. isSerializable(Class clazz)
  4. isSerializable(Object o)
  5. isSerializable(Object o)
  6. isSerializable(Object o)
  7. isSerializable(Object o)