From 828be405e11dd8bc7f8a3692d2c74517734f67a5 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Sun, 30 Aug 2020 22:53:19 -0400 Subject: use inheritdoc --- src/SMAPI/SemanticVersion.cs | 47 +++++++++++++++----------------------------- 1 file changed, 16 insertions(+), 31 deletions(-) (limited to 'src/SMAPI/SemanticVersion.cs') diff --git a/src/SMAPI/SemanticVersion.cs b/src/SMAPI/SemanticVersion.cs index 4a175efe..ae616419 100644 --- a/src/SMAPI/SemanticVersion.cs +++ b/src/SMAPI/SemanticVersion.cs @@ -16,19 +16,19 @@ namespace StardewModdingAPI /********* ** Accessors *********/ - /// The major version incremented for major API changes. + /// public int MajorVersion => this.Version.MajorVersion; - /// The minor version incremented for backwards-compatible changes. + /// public int MinorVersion => this.Version.MinorVersion; - /// The patch version for backwards-compatible bug fixes. + /// public int PatchVersion => this.Version.PatchVersion; - /// An optional prerelease tag. + /// public string PrereleaseTag => this.Version.PrereleaseTag; - /// Optional build metadata. This is ignored when determining version precedence. + /// public string BuildMetadata => this.Version.BuildMetadata; @@ -83,83 +83,68 @@ namespace StardewModdingAPI this.Version = version; } - /// Whether this is a prerelease version. + /// public bool IsPrerelease() { return this.Version.IsPrerelease(); } - /// Get an integer indicating whether this version precedes (less than 0), supersedes (more than 0), or is equivalent to (0) the specified version. - /// The version to compare with this instance. - /// The value is null. + /// /// The implementation is defined by Semantic Version 2.0 (https://semver.org/). public int CompareTo(ISemanticVersion other) { return this.Version.CompareTo(other); } - /// Get whether this version is older than the specified version. - /// The version to compare with this instance. + /// public bool IsOlderThan(ISemanticVersion other) { return this.Version.IsOlderThan(other); } - /// Get whether this version is older than the specified version. - /// The version to compare with this instance. - /// The specified version is not a valid semantic version. + /// public bool IsOlderThan(string other) { return this.Version.IsOlderThan(other); } - /// Get whether this version is newer than the specified version. - /// The version to compare with this instance. + /// public bool IsNewerThan(ISemanticVersion other) { return this.Version.IsNewerThan(other); } - /// Get whether this version is newer than the specified version. - /// The version to compare with this instance. - /// The specified version is not a valid semantic version. + /// public bool IsNewerThan(string other) { return this.Version.IsNewerThan(other); } - /// Get whether this version is between two specified versions (inclusively). - /// The minimum version. - /// The maximum version. + /// public bool IsBetween(ISemanticVersion min, ISemanticVersion max) { return this.Version.IsBetween(min, max); } - /// Get whether this version is between two specified versions (inclusively). - /// The minimum version. - /// The maximum version. - /// One of the specified versions is not a valid semantic version. + /// public bool IsBetween(string min, string max) { return this.Version.IsBetween(min, max); } - /// Indicates whether the current object is equal to another object of the same type. - /// true if the current object is equal to the parameter; otherwise, false. - /// An object to compare with this object. + /// public bool Equals(ISemanticVersion other) { return other != null && this.CompareTo(other) == 0; } - /// Get a string representation of the version. + /// public override string ToString() { return this.Version.ToString(); } - /// Whether the version uses non-standard extensions, like four-part game versions on some platforms. + /// public bool IsNonStandard() { return this.Version.IsNonStandard(); -- cgit