Class MonacoDiffEditorModel
java.lang.Object
org.primefaces.extensions.model.monaco.MonacoDiffEditorModel
- All Implemented Interfaces:
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MonacoDiffEditorModel
empty()
boolean
int
hashCode()
boolean
isEmpty()
toString()
withModified
(String modifiedValue) withOriginal
(String originalValue)
-
Constructor Details
-
MonacoDiffEditorModel
public MonacoDiffEditorModel() -
MonacoDiffEditorModel
-
-
Method Details
-
withOriginal
-
withModified
-
getOriginalValue
- Returns:
- The original text against which perform the comparison.
-
getModifiedValue
- Returns:
- The modified text to compare against the original text.
-
hashCode
public int hashCode() -
equals
-
isEmpty
public boolean isEmpty()- Returns:
- Whether this model is empty, e.g. both the original and modified values are empty.
-
toString
-
empty
- Returns:
- An empty model with no value.
-