Package de.xima.fc.utils.range
Class RangeUtils.RangeSetCollector<C extends Comparable<C>>
- java.lang.Object
-
- de.xima.fc.utils.range.RangeUtils.RangeSetCollector<C>
-
- All Implemented Interfaces:
Collector<com.google.common.collect.Range<C>,com.google.common.collect.TreeRangeSet<C>,com.google.common.collect.RangeSet<C>>
- Enclosing class:
- RangeUtils
protected static final class RangeUtils.RangeSetCollector<C extends Comparable<C>> extends Object implements Collector<com.google.common.collect.Range<C>,com.google.common.collect.TreeRangeSet<C>,com.google.common.collect.RangeSet<C>>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface java.util.stream.Collector
Collector.Characteristics
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
RangeSetCollector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BiConsumer<com.google.common.collect.TreeRangeSet<C>,com.google.common.collect.Range<C>>
accumulator()
Set<Collector.Characteristics>
characteristics()
BinaryOperator<com.google.common.collect.TreeRangeSet<C>>
combiner()
Function<com.google.common.collect.TreeRangeSet<C>,com.google.common.collect.RangeSet<C>>
finisher()
Supplier<com.google.common.collect.TreeRangeSet<C>>
supplier()
-
-
-
Method Detail
-
accumulator
public BiConsumer<com.google.common.collect.TreeRangeSet<C>,com.google.common.collect.Range<C>> accumulator()
- Specified by:
accumulator
in interfaceCollector<com.google.common.collect.Range<C extends Comparable<C>>,com.google.common.collect.TreeRangeSet<C extends Comparable<C>>,com.google.common.collect.RangeSet<C extends Comparable<C>>>
-
characteristics
public Set<Collector.Characteristics> characteristics()
- Specified by:
characteristics
in interfaceCollector<com.google.common.collect.Range<C extends Comparable<C>>,com.google.common.collect.TreeRangeSet<C extends Comparable<C>>,com.google.common.collect.RangeSet<C extends Comparable<C>>>
-
combiner
public BinaryOperator<com.google.common.collect.TreeRangeSet<C>> combiner()
- Specified by:
combiner
in interfaceCollector<com.google.common.collect.Range<C extends Comparable<C>>,com.google.common.collect.TreeRangeSet<C extends Comparable<C>>,com.google.common.collect.RangeSet<C extends Comparable<C>>>
-
finisher
public Function<com.google.common.collect.TreeRangeSet<C>,com.google.common.collect.RangeSet<C>> finisher()
- Specified by:
finisher
in interfaceCollector<com.google.common.collect.Range<C extends Comparable<C>>,com.google.common.collect.TreeRangeSet<C extends Comparable<C>>,com.google.common.collect.RangeSet<C extends Comparable<C>>>
-
supplier
public Supplier<com.google.common.collect.TreeRangeSet<C>> supplier()
- Specified by:
supplier
in interfaceCollector<com.google.common.collect.Range<C extends Comparable<C>>,com.google.common.collect.TreeRangeSet<C extends Comparable<C>>,com.google.common.collect.RangeSet<C extends Comparable<C>>>
-
-