Class MonacoDiffEditorModel

  • All Implemented Interfaces:
    java.io.Serializable

    public class MonacoDiffEditorModel
    extends java.lang.Object
    implements java.io.Serializable
    Immutable Model for the Monaco diff code editor that encapsulates two strings, corresponding to the value of the original and modified editor.
    Since:
    11.1.0
    See Also:
    Serialized Form
    • Constructor Detail

      • MonacoDiffEditorModel

        public MonacoDiffEditorModel()
      • MonacoDiffEditorModel

        public MonacoDiffEditorModel​(java.lang.String originalValue,
                                     java.lang.String modifiedValue)
    • Method Detail

      • getOriginalValue

        public java.lang.String getOriginalValue()
        Returns:
        The original text against which perform the comparison.
      • getModifiedValue

        public java.lang.String getModifiedValue()
        Returns:
        The modified text to compare against the original text.
      • hashCode

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

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • isEmpty

        public boolean isEmpty()
        Returns:
        Whether this model is empty, e.g. both the original and modified values are empty.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object