Example usage for org.apache.commons.lang ClassUtils getAllInterfaces

List of usage examples for org.apache.commons.lang ClassUtils getAllInterfaces

Introduction

In this page you can find the example usage for org.apache.commons.lang ClassUtils getAllInterfaces.

Prototype

public static List<Class<?>> getAllInterfaces(Class<?> cls) 

Source Link

Document

Gets a List of all interfaces implemented by the given class and its superclasses.

The order is determined by looking through each interface in turn as declared in the source file and following its hierarchy up.

Usage

From source file:ummisco.gama.serializer.gamaType.converters.GamaMatrixConverter.java

@Override
public boolean canConvert(final Class arg0) {
    final List allInterfaceApa = ClassUtils.getAllInterfaces(arg0);

    for (final Object i : allInterfaceApa) {
        if (i.equals(IMatrix.class))
            return true;
    }/*from w  ww. j  a  v  a 2s .  c om*/
    return false;
}