Package hudson.scm

Class CVSChangeLogSet.Revision

java.lang.Object
hudson.scm.CVSChangeLogSet.Revision
Enclosing class:
CVSChangeLogSet

public static class CVSChangeLogSet.Revision extends Object
Represents CVS revision number like "1.5.3.2". Immutable.
  • Field Details

    • numbers

      public final int[] numbers
  • Constructor Details

    • Revision

      public Revision(int[] numbers)
    • Revision

      public Revision(String s)
  • Method Details

    • getPrevious

      public CVSChangeLogSet.Revision getPrevious()
      Returns a new CVSChangeLogSet.Revision that represents the previous revision. For example, "1.5"->"1.4", "1.5.2.13"->"1.5.2.12", "1.5.2.1"->"1.5"
      Returns:
      null if there's no previous version, meaning this is "1.1"
    • toString

      public String toString()
      Overrides:
      toString in class Object