Package com.io7m.changelog.core
Interface CChangelogType
- All Known Implementing Classes:
CChangelog
@Immutable
public interface CChangelogType
The type of changelogs.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidCheck preconditions for the type.findTargetRelease(CVersion version) Find the target release.findTargetReleaseOrLatest(Optional<CVersion> version) Find the target release if one is specified, or return the current release otherwise.findTargetReleaseOrLatestOpen(Optional<CVersion> version) Find the target release if one is specified, or return the current release otherwise, but only if either of those releases are open.findTicketSystem(Optional<String> idOpt) Find the current ticket system.project()releases()default CVersionSuggest a new version number for the next release.
-
Method Details
-
project
CProjectName project()- Returns:
- The project name
-
releases
- Returns:
- The list of releases
-
ticketSystems
Map<String,CTicketSystem> ticketSystems()- Returns:
- The ticket systems
-
releaseVersions
- Returns:
- The list of available versions in ascending order
-
latestRelease
- Returns:
- The latest release, if one is defined
-
suggestNextRelease
Suggest a new version number for the next release.- Returns:
- A new version greater than any existing version
- Throws:
IllegalArgumentException- If a version cannot be determined
-
findTargetReleaseOrLatestOpen
Find the target release if one is specified, or return the current release otherwise, but only if either of those releases are open.- Parameters:
version- The release version- Returns:
- The target release
-
findTargetReleaseOrLatest
Find the target release if one is specified, or return the current release otherwise.- Parameters:
version- The release version- Returns:
- The target release
-
findTargetRelease
Find the target release.- Parameters:
version- The release version- Returns:
- The target release
-
findTicketSystem
Find the current ticket system.- Parameters:
idOpt- The ticket system ID, if any- Returns:
- The ticket system if it exists
-
checkPreconditions
@Check default void checkPreconditions()Check preconditions for the type.
-