Class Revision

java.lang.Object
com.exedio.cope.Revision

public final class Revision extends Object
  • Constructor Details

    • Revision

      public Revision(int number, String comment, String... body)
      Parameters:
      body - See getBody() for further information.
  • Method Details

    • getNumber

      public int getNumber()
    • getComment

      public String getComment()
    • getBody

      public List<String> getBody()
      The statements listed here are guaranteed to be executed subsequently in the order specified by the list by one single connection. So you may use connection states within a revision.

      For each revision a new connection is created. That connection is not used for any other purpose afterwards so you don't have to cleanup connection state at the end of each revision. This is for minimizing effects between revisions.

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • parse

      @Deprecated public static Properties parse(byte[] info)
      Deprecated.
    • getVersion

      @Deprecated public int getVersion()
      Deprecated.
      Use getNumber() instead
    • getRevision

      @Deprecated public int getRevision()
      Deprecated.
      Use getNumber() instead