Java Is Serializable Object isSerializable(Class clazz)

Here you can find the source of isSerializable(Class clazz)

Description

is Serializable

License

Open Source License

Declaration

public static boolean isSerializable(Class<?> clazz) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.io.Serializable;

public class Main {
    public static boolean isSerializable(Class<?> clazz) {
        return Serializable.class.isAssignableFrom(clazz);
    }/* ww  w  .ja v  a  2  s .c  o m*/
}

Related

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