Top Description Inners Constructors Methods
com.google.auto.value.extension.serializable.serializer.runtime

public final Class FunctionWithExceptions

extends Object
Class Inheritance
Imports
java.util.function.Function

A utility for lambdas that throw exceptions.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
FunctionWithExceptions.FunctionWithException<I, O>

A function that can throw an exception.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static <I, O> Function<I, O>
wrapper(FunctionWithExceptions.FunctionWithException<I, O> fe)

Creates a wrapper for lambdas that converts checked exceptions to runtime exceptions.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

FunctionWithExceptionsback to summary
private FunctionWithExceptions()

Method Detail

wrapperback to summary
public static <I, O> Function<I, O> wrapper(FunctionWithExceptions.FunctionWithException<I, O> fe)

Creates a wrapper for lambdas that converts checked exceptions to runtime exceptions.

com.google.auto.value.extension.serializable.serializer.runtime back to summary

public Interface FunctionWithExceptions.FunctionWithException<I, O>

Annotations
@FunctionalInterface

A function that can throw an exception.

Method Summary

Modifier and TypeMethod and Description
public O
apply(I i)

Method Detail

applyback to summary
public O apply(I i) throws Exception