Interface Revision

  • All Superinterfaces:
    java.lang.Comparable<Revision>
    All Known Implementing Classes:
    RevisionImpl

    public interface Revision
    extends java.lang.Comparable<Revision>
    A maker for a version of a Revisioned object.
    • Method Detail

      • asImpl

        RevisionImpl asImpl()
        Returns the actual instance. This method prevents other classes from implementing this interface.
        Returns:
        Implementation of the revision interface
      • toString

        java.lang.String toString()
        Serializes the Revision to a human readable string.
        Overrides:
        toString in class java.lang.Object
        Returns:
        A string representation of the Revision.
      • fromString

        static Revision fromString​(java.lang.String revision)
        Deserializes the revision from its serialized from obtained from calling toString().
        Parameters:
        revision - A serialized revision.
        Returns:
        The Revision object.