Package it.tidalwave.util
Class SupplierBasedFinder<T>
- java.lang.Object
-
- it.tidalwave.util.spi.FinderSupport<T,it.tidalwave.util.Finder<T>>
-
- it.tidalwave.util.spi.SimpleFinderSupport<T>
-
- it.tidalwave.util.SupplierBasedFinder<T>
-
- All Implemented Interfaces:
it.tidalwave.util.Finder<T>
,java.io.Serializable
,java.lang.Cloneable
- Direct Known Subclasses:
MappingFinder
@Immutable public class SupplierBasedFinder<T> extends it.tidalwave.util.spi.SimpleFinderSupport<T>
AFinder
which retrieve results from aSupplier
.- Author:
- Fabrizio Giudici
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SupplierBasedFinder(SupplierBasedFinder<T> other, java.lang.Object override)
SupplierBasedFinder(java.util.function.Supplier<java.util.Collection<? extends T>> supplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<? extends T>
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
-
SupplierBasedFinder
public SupplierBasedFinder(@Nonnull java.util.function.Supplier<java.util.Collection<? extends T>> supplier)
-
SupplierBasedFinder
public SupplierBasedFinder(@Nonnull SupplierBasedFinder<T> other, @Nonnull java.lang.Object override)
-
-