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 Revisions.
Since:
4.0.49
  • Constructor Details

    • RevisionProvider

      public RevisionProvider(HistoryProvider _historyProvider)
      Constructor based on a history provider.
      Parameters:
      _historyProvider - A history provider.
      Since:
      4.0.49
  • Method Details

    • getElements

      public List<Revision> 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.
      Specified by:
      getElements in interface ElementProvider<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. If null, accepts all elements.
      Returns:
      A list of revisions.
      Since:
      4.0.49
    • equals

      public boolean equals(Object obj)
      Equality implementation for this type.
      Overrides:
      equals in class Object
      Parameters:
      obj - The object to compare with.
      Returns:
      true, if equal.
      Since:
      4.0.52
    • hashCode

      public int hashCode()
      Hashcode implementation for this type.
      Overrides:
      hashCode in class Object
      Returns:
      A hash code.
      Since:
      4.0.52