Gang -

As part of this bug fix:

https://issues.apache.org/jira/browse/TRINIDAD-2250

I am planning to add two more new methods to
org.apache.myfaces.trinidad.context.Version:

+ /**
+ * Converts this Version to the previous version just before this
+ * version. For example, new Version("1.9").toPreviousVersion()
+ * results in the version "1.8".
+ *
+ * The resulting version is guaranteed to be "concrete" - ie.
+ * will contain no wildcards.
+ *
+ * Calling toPreviousVersion() on Version.MIN_VERSION returns
+ * Version.MIN_VERSION.
+ *
+ * @return the Version instance corresponding to the version just
+ * before this version.
+ */
+ public Version toPreviousVersion()

+ /**
+ * Converts this Version to the next version just after this
+ * version. For example, new Version("1.9").toPreviousVersion()
+ * results in the version "1.10".
+ *
+ * The resulting version is guaranteed to be "concrete" - ie.
+ * will contain no wildcards.
+ *
+ * Calling toNextVersion() on Version.MAX_VERSION returns
+ * Version.MAX_VERSION.
+ *
+ * @return the Version instance corresponding to the version just
+ * after this version.
+ */
+ public Version toNextVersion()

Nothing too exciting, but wanted to send out a heads up in case anyone
has comments.

Andy

Reply via email to