Class CChangelogFilters

java.lang.Object
com.io7m.changelog.core.CChangelogFilters

public final class CChangelogFilters extends Object
Functions to transform and filter changelogs.
  • Method Details

    • upToAndIncluding

      public static Optional<CChangelog> upToAndIncluding(CChangelog changelog, CVersion version, int count)
      Parameters:
      changelog - The current changelog
      version - The release version
      count - The maximum number of releases to display
      Returns:
      A version of changelog featuring at most count releases up to and including version, or nothing if the changelog does not contain version
    • limit

      public static CChangelog limit(CChangelog changelog, long size)
      Filter the changelog to only contain the size most recent releases.
      Parameters:
      changelog - The changelog
      size - The limit
      Returns:
      A new changelog containing only the filtered releases