Package de.espirit.firstspirit.storage
Class HistoryProvider.RevisionProvider
java.lang.Object
de.espirit.firstspirit.storage.HistoryProvider.RevisionProvider
- All Implemented Interfaces:
ElementProvider<Revision>
- Enclosing interface:
- HistoryProvider
public static class HistoryProvider.RevisionProvider
extends Object
implements ElementProvider<Revision>
Wrapper on a HistoryProvider to act as
ElementProvider
on Revision
s.- Since:
- 4.0.49
-
Field Summary
Fields inherited from interface de.espirit.common.util.ElementProvider
ALL
-
Constructor Summary
ConstructorDescriptionRevisionProvider
(HistoryProvider _historyProvider) Constructor based on ahistory provider
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Equality implementation for this type.getElements
(Revision first, Revision last, int max, Filter<Revision> filter) Provides all revisions within the defined range matching the given filter, but at most max entries.int
hashCode()
Hashcode implementation for this type.
-
Constructor Details
-
RevisionProvider
Constructor based on ahistory provider
.- Parameters:
_historyProvider
- A history provider.- Since:
- 4.0.49
-
-
Method Details
-
getElements
Provides all revisions within the defined range matching the given filter, but at most max entries.- Specified by:
getElements
in interfaceElementProvider<Revision>
- Parameters:
first
- The youngest revision to find.last
- The oldes revision to find.max
- The maximum number of revisions to provide.filter
- Filter to be passed. Ifnull
, accepts all elements.- Returns:
- A list of revisions.
- Since:
- 4.0.49
-
equals
Equality implementation for this type. -
hashCode
public int hashCode()Hashcode implementation for this type.
-