Class MockBackupFinder
java.lang.Object
it.tidalwave.util.spi.HierarchicFinderSupport<Backup,MockBackupFinder>
it.tidalwave.datamanager.application.nogui.MockBackupFinder
- All Implemented Interfaces:
DataManager.BackupFinder
,it.tidalwave.util.Finder<Backup>
,it.tidalwave.util.spi.ExtendedFinderSupport<Backup,
,DataManager.BackupFinder> Serializable
,Cloneable
public class MockBackupFinder
extends it.tidalwave.util.spi.HierarchicFinderSupport<Backup,MockBackupFinder>
implements DataManager.BackupFinder
A mock for
DataManager.BackupFinder
.- Author:
- Fabrizio Giudici
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface it.tidalwave.datamanager.model.DataManager.BackupFinder
DataManager.BackupFinder.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
ConstructorDescriptionMockBackupFinder
(Holder<MockBackupFinder> holder) MockBackupFinder
(MockBackupFinder other, Object override) -
Method Summary
Modifier and TypeMethodDescriptionsort
(it.tidalwave.util.Finder.SortCriterion criterion, it.tidalwave.util.Finder.SortDirection direction) withFileId
(Optional<String> fileId) withVolumeId
(Optional<String> volumeId) 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.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 -
label
-
volumeId
-
fileId
-
-
Constructor Details
-
MockBackupFinder
-
MockBackupFinder
-
-
Method Details
-
sort
@Nonnull public MockBackupFinder sort(@Nonnull it.tidalwave.util.Finder.SortCriterion criterion, @Nonnull it.tidalwave.util.Finder.SortDirection direction) - Specified by:
sort
in interfaceit.tidalwave.util.spi.ExtendedFinderSupport<Backup,
DataManager.BackupFinder> - Specified by:
sort
in interfaceit.tidalwave.util.Finder<Backup>
- Overrides:
sort
in classit.tidalwave.util.spi.HierarchicFinderSupport<Backup,
MockBackupFinder>
-
withLabel
- Specified by:
withLabel
in interfaceDataManager.BackupFinder
-
withVolumeId
- Specified by:
withVolumeId
in interfaceDataManager.BackupFinder
-
withFileId
- Specified by:
withFileId
in interfaceDataManager.BackupFinder
-
computeResults
- Overrides:
computeResults
in classit.tidalwave.util.spi.HierarchicFinderSupport<Backup,
MockBackupFinder>
-