Class MockManagedFileFinder
java.lang.Object
it.tidalwave.util.spi.HierarchicFinderSupport<ManagedFile,MockManagedFileFinder>
it.tidalwave.datamanager.application.nogui.MockManagedFileFinder
- All Implemented Interfaces:
DataManager.ManagedFileFinder
,it.tidalwave.util.Finder<ManagedFile>
,it.tidalwave.util.spi.ExtendedFinderSupport<ManagedFile,
,DataManager.ManagedFileFinder> Serializable
,Cloneable
public class MockManagedFileFinder
extends it.tidalwave.util.spi.HierarchicFinderSupport<ManagedFile,MockManagedFileFinder>
implements DataManager.ManagedFileFinder
A mock for
DataManager.ManagedFileFinder
.- Author:
- Fabrizio Giudici
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface it.tidalwave.datamanager.model.DataManager.ManagedFileFinder
DataManager.ManagedFileFinder.SortingKeys
Nested classes/interfaces inherited from interface it.tidalwave.util.Finder
it.tidalwave.util.Finder.InMemorySortCriterion<U extends Object>, it.tidalwave.util.Finder.SortCriterion, it.tidalwave.util.Finder.SortDirection
-
Field Summary
Modifier and TypeFieldDescriptionfinal List<it.tidalwave.util.Pair<it.tidalwave.util.Finder.SortCriterion,
it.tidalwave.util.Finder.SortDirection>> Fields inherited from class it.tidalwave.util.spi.HierarchicFinderSupport
firstResult, maxResults
-
Constructor Summary
ConstructorDescriptionMockManagedFileFinder
(Holder<MockManagedFileFinder> holder, List<ManagedFile> result) MockManagedFileFinder
(MockManagedFileFinder other, Object override) -
Method Summary
Modifier and TypeMethodDescriptionprotected List<ManagedFile>
sort
(it.tidalwave.util.Finder.SortCriterion criterion, it.tidalwave.util.Finder.SortDirection direction) withFingerprint
(Optional<String> fingerprint) Methods inherited from class it.tidalwave.util.spi.HierarchicFinderSupport
clone, clone, clonedWith, computeNeededResults, count, from, getContexts, getSource, max, ofType, results, 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.datamanager.model.DataManager.ManagedFileFinder
withFingerprint
Methods inherited from interface it.tidalwave.util.spi.ExtendedFinderSupport
from, max, sort, withContext
Methods inherited from interface it.tidalwave.util.Finder
count, firstResult, forEach, from, from, iterator, max, max, ofType, optionalFirstResult, optionalResult, result, results, stream
-
Field Details
-
sorters
@Nonnull public final List<it.tidalwave.util.Pair<it.tidalwave.util.Finder.SortCriterion,it.tidalwave.util.Finder.SortDirection>> sorters -
fingerprint
-
-
Constructor Details
-
MockManagedFileFinder
public MockManagedFileFinder(@Nonnull Holder<MockManagedFileFinder> holder, @Nonnull List<ManagedFile> result) -
MockManagedFileFinder
-
-
Method Details
-
sort
@Nonnull public MockManagedFileFinder sort(@Nonnull it.tidalwave.util.Finder.SortCriterion criterion, @Nonnull it.tidalwave.util.Finder.SortDirection direction) - Specified by:
sort
in interfaceit.tidalwave.util.spi.ExtendedFinderSupport<ManagedFile,
DataManager.ManagedFileFinder> - Specified by:
sort
in interfaceit.tidalwave.util.Finder<ManagedFile>
- Overrides:
sort
in classit.tidalwave.util.spi.HierarchicFinderSupport<ManagedFile,
MockManagedFileFinder>
-
withFingerprint
@Nonnull public DataManager.ManagedFileFinder withFingerprint(@Nonnull Optional<String> fingerprint) - Specified by:
withFingerprint
in interfaceDataManager.ManagedFileFinder
-
computeResults
- Overrides:
computeResults
in classit.tidalwave.util.spi.HierarchicFinderSupport<ManagedFile,
MockManagedFileFinder>
-