Class RevisionImpl

  • All Implemented Interfaces:
    Revision, java.io.Serializable, java.lang.Comparable<Revision>

    public class RevisionImpl
    extends java.lang.Object
    implements Revision, java.io.Serializable
    See Also:
    Serialized Form
    • Method Detail

      • compareTo

        public int compareTo​(Revision o)
        Specified by:
        compareTo in interface java.lang.Comparable<Revision>
      • asImpl

        public RevisionImpl asImpl()
        Description copied from interface: Revision
        Returns the actual instance. This method prevents other classes from implementing this interface.
        Specified by:
        asImpl in interface Revision
        Returns:
        Implementation of the revision interface
      • toString

        public java.lang.String toString()
        Description copied from interface: Revision
        Serializes the Revision to a human readable string.
        Specified by:
        toString in interface Revision
        Overrides:
        toString in class java.lang.Object
        Returns:
        A string representation of the Revision.
      • fromString

        public static Revision fromString​(java.lang.String scopedName)
        Description copied from interface: Revision
        Deserializes the revision from its serialized from obtained from calling Revision.toString().
        Parameters:
        scopedName - A serialized revision.
        Returns:
        The Revision object.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object