Example usage for org.springframework.expression TypedValue TypedValue

List of usage examples for org.springframework.expression TypedValue TypedValue

Introduction

In this page you can find the example usage for org.springframework.expression TypedValue TypedValue.

Prototype

public TypedValue(@Nullable Object value) 

Source Link

Document

Create a TypedValue for a simple object.

Usage

From source file:com.creactiviti.piper.core.task.SpelTaskEvaluator.java

private <T> MethodExecutor flatten() {
    return (ctx, target, args) -> {
        List<List<T>> list = (List<List<T>>) args[0];
        List<T> flat = list.stream().flatMap(List::stream).collect(Collectors.toList());
        return new TypedValue(flat);
    };//from  www.ja  v  a2  s . c  o m
}