com.talanlabs.java.lambda.TryCollector Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of try Show documentation
Show all versions of try Show documentation
Help to get exception in java 8 lambda
The newest version!
package com.talanlabs.java.lambda;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.function.BiConsumer;
import java.util.function.BinaryOperator;
import java.util.function.Function;
import java.util.function.Supplier;
import java.util.stream.Collector;
import java.util.stream.Collectors;
/**
* A Collector implementation processing elements as long as results are success
* @param
*/
public class TryCollector implements Collector>, Map>>, Try>> {
@Override
public Supplier