Example usage for org.apache.commons.lang3 Validate isAssignableFrom

List of usage examples for org.apache.commons.lang3 Validate isAssignableFrom

Introduction

In this page you can find the example usage for org.apache.commons.lang3 Validate isAssignableFrom.

Prototype

public static void isAssignableFrom(final Class<?> superType, final Class<?> type) 

Source Link

Document

Validates that the argument can be converted to the specified class, if not, throws an exception.

Usage

From source file:org.datalorax.populace.core.walk.inspector.MapEntryInspector.java

@SuppressWarnings("unchecked")
private static Class<? extends Map.Entry<?, ?>> ensureMapEntry(final Class<?> type) {
    Validate.isAssignableFrom(Map.Entry.class, type);
    return (Class<? extends Map.Entry<?, ?>>) type;
}