Class MappingFinder<TYPE>

  • All Implemented Interfaces:
    it.tidalwave.util.Finder<TYPE>, java.io.Serializable, java.lang.Cloneable

    @Immutable
    public class MappingFinder<TYPE>
    extends SupplierBasedFinder<TYPE>
    A Finder which retrieve results from another instance applying a Function.
    Author:
    Fabrizio Giudici
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface it.tidalwave.util.Finder

        it.tidalwave.util.Finder.InMemorySortCriterion<TYPE extends java.lang.Object>, it.tidalwave.util.Finder.SortCriterion, it.tidalwave.util.Finder.SortDirection
    • 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
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface it.tidalwave.util.Finder

        firstResult, iterator, optionalFirstResult, optionalResult, result, stream
    • 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)