Class SetCollector<T>

java.lang.Object
org.simpleflatmapper.util.SetCollector<T>
Type Parameters:
T - the type of the callback argument
All Implemented Interfaces:
Consumer<T>, CheckedConsumer<T>, Consumer<T>

public final class SetCollector<T> extends Object implements Consumer<T>
Implementation of Consumer that collect all the value into a set.

Equivalent to a Collectors.toSet().

  • Constructor Details

    • SetCollector

      public SetCollector()
  • Method Details