Example usage for java.util.function Function getClass

List of usage examples for java.util.function Function getClass

Introduction

In this page you can find the example usage for java.util.function Function getClass.

Prototype

@HotSpotIntrinsicCandidate
public final native Class<?> getClass();

Source Link

Document

Returns the runtime class of this Object .

Usage

From source file:org.agiso.core.i18n.util.I18nUtils.java

@SuppressWarnings("unchecked")
public static <T, R extends Serializable> String getCode(Function<T, R> f) throws IntrospectionException {
    final Class<?>[] arguments = TypeResolver.resolveRawArguments(Function.class, f.getClass());

    return getCode((Class<T>) arguments[0], f);
}