Package it.tidalwave.util
Class MappingFinder<TYPE>
- java.lang.Object
-
- it.tidalwave.util.spi.FinderSupport<T,it.tidalwave.util.Finder<T>>
-
- it.tidalwave.util.spi.SimpleFinderSupport<T>
-
- it.tidalwave.util.SupplierBasedFinder<TYPE>
-
- it.tidalwave.util.MappingFinder<TYPE>
-
- All Implemented Interfaces:
it.tidalwave.util.Finder<TYPE>
,java.io.Serializable
,java.lang.Cloneable
@Immutable public class MappingFinder<TYPE> extends SupplierBasedFinder<TYPE>
AFinder
which retrieve results from another instance applying aFunction
.- Author:
- Fabrizio Giudici
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MappingFinder(it.tidalwave.util.Finder<TYPE> delegate, java.util.function.Function<TYPE,TYPE> mapper)
MappingFinder(MappingFinder other, java.lang.Object override)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<? extends TYPE>
computeResults()
-
Methods inherited from class it.tidalwave.util.spi.FinderSupport
clone, clone, clonedWith, computeNeededResults, count, from, getContexts, getSource, max, ofType, results, sort, sort, toString, withContext
-
-
-
-
Constructor Detail
-
MappingFinder
public MappingFinder(@Nonnull it.tidalwave.util.Finder<TYPE> delegate, @Nonnull java.util.function.Function<TYPE,TYPE> mapper)
-
MappingFinder
public MappingFinder(@Nonnull MappingFinder other, @Nonnull java.lang.Object override)
-
-
Method Detail
-
computeResults
@Nonnull protected java.util.List<? extends TYPE> computeResults()
- Overrides:
computeResults
in classSupplierBasedFinder<TYPE>
-
-