@Override @Pure public boolean equals(final Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; if (!super.equals(obj)) return false; SemanticHighlightingRegistry.HighlightedRange other = (SemanticHighlightingRegistry.HighlightedRange) obj; if (other.scope != this.scope) return false; return true; }
@Override @Pure public boolean equals(final Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; TextEdit other = (TextEdit) obj; if (this.range == null) { if (other.range != null) return false; } else if (!this.range.equals(other.range)) return false; if (this.newText == null) { if (other.newText != null) return false; } else if (!this.newText.equals(other.newText)) return false; return true; }
/** * @return <code>true</code> if a list of {@link org.eclipse.lsp4j.TextEdit} * contains any actual changes, <code>false</code> otherwise. */ public static boolean hasChanges(List<org.eclipse.lsp4j.TextEdit> edits) { if (edits == null) { return false; } //@formatter:off return edits.stream() .filter(edit -> (!edit.getRange().equals(ZERO_RANGE) || !"".equals(edit.getNewText()))) .findFirst() .isPresent(); //@formatter:on }
@Override @Pure public boolean equals(final Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; ColoringInformation other = (ColoringInformation) obj; if (this.range == null) { if (other.range != null) return false; } else if (!this.range.equals(other.range)) return false; if (this.styles == null) { if (other.styles != null) return false; } else if (!this.styles.equals(other.styles)) return false; return true; }
@Override @Pure public boolean equals(final Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; PrepareRenameResult other = (PrepareRenameResult) obj; if (this.range == null) { if (other.range != null) return false; } else if (!this.range.equals(other.range)) return false; if (this.placeholder == null) { if (other.placeholder != null) return false; } else if (!this.placeholder.equals(other.placeholder)) return false; return true; }
@Override @Pure public boolean equals(final Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; Location other = (Location) obj; if (this.uri == null) { if (other.uri != null) return false; } else if (!this.uri.equals(other.uri)) return false; if (this.range == null) { if (other.range != null) return false; } else if (!this.range.equals(other.range)) return false; return true; }
@Override @Pure public boolean equals(final Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; PrepareRenameResult other = (PrepareRenameResult) obj; if (this.range == null) { if (other.range != null) return false; } else if (!this.range.equals(other.range)) return false; if (this.placeholder == null) { if (other.placeholder != null) return false; } else if (!this.placeholder.equals(other.placeholder)) return false; return true; }
@Override @Pure public boolean equals(final Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; ColoringInformation other = (ColoringInformation) obj; if (this.range == null) { if (other.range != null) return false; } else if (!this.range.equals(other.range)) return false; if (this.styles == null) { if (other.styles != null) return false; } else if (!this.styles.equals(other.styles)) return false; return true; }
@Override @Pure public boolean equals(final Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; TextEdit other = (TextEdit) obj; if (this.range == null) { if (other.range != null) return false; } else if (!this.range.equals(other.range)) return false; if (this.newText == null) { if (other.newText != null) return false; } else if (!this.newText.equals(other.newText)) return false; return true; }
@Override @Pure public boolean equals(final Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; Location other = (Location) obj; if (this.uri == null) { if (other.uri != null) return false; } else if (!this.uri.equals(other.uri)) return false; if (this.range == null) { if (other.range != null) return false; } else if (!this.range.equals(other.range)) return false; return true; }
@Override @Pure public boolean equals(final Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; TextDocumentContentChangeEvent other = (TextDocumentContentChangeEvent) obj; if (this.range == null) { if (other.range != null) return false; } else if (!this.range.equals(other.range)) return false; if (this.rangeLength == null) { if (other.rangeLength != null) return false; } else if (!this.rangeLength.equals(other.rangeLength)) return false; if (this.text == null) { if (other.text != null) return false; } else if (!this.text.equals(other.text)) return false; return true; }
@Override @Pure public boolean equals(final Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; if (!super.equals(obj)) return false; DocumentRangeFormattingParams other = (DocumentRangeFormattingParams) obj; if (this.range == null) { if (other.range != null) return false; } else if (!this.range.equals(other.range)) return false; return true; }
@Override @Pure public boolean equals(final Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; ColorInformation other = (ColorInformation) obj; if (this.range == null) { if (other.range != null) return false; } else if (!this.range.equals(other.range)) return false; if (this.color == null) { if (other.color != null) return false; } else if (!this.color.equals(other.color)) return false; return true; }
@Override @Pure public boolean equals(final Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; if (!super.equals(obj)) return false; DocumentRangeFormattingParams other = (DocumentRangeFormattingParams) obj; if (this.range == null) { if (other.range != null) return false; } else if (!this.range.equals(other.range)) return false; return true; }
@Override @Pure public boolean equals(final Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; DocumentHighlight other = (DocumentHighlight) obj; if (this.range == null) { if (other.range != null) return false; } else if (!this.range.equals(other.range)) return false; if (this.kind == null) { if (other.kind != null) return false; } else if (!this.kind.equals(other.kind)) return false; return true; }
@Override @Pure public boolean equals(final Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; Hover other = (Hover) obj; if (this.contents == null) { if (other.contents != null) return false; } else if (!this.contents.equals(other.contents)) return false; if (this.range == null) { if (other.range != null) return false; } else if (!this.range.equals(other.range)) return false; return true; }
@Override @Pure public boolean equals(final Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; DocumentHighlight other = (DocumentHighlight) obj; if (this.range == null) { if (other.range != null) return false; } else if (!this.range.equals(other.range)) return false; if (this.kind == null) { if (other.kind != null) return false; } else if (!this.kind.equals(other.kind)) return false; return true; }
@Override @Pure public boolean equals(final Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; ColorInformation other = (ColorInformation) obj; if (this.range == null) { if (other.range != null) return false; } else if (!this.range.equals(other.range)) return false; if (this.color == null) { if (other.color != null) return false; } else if (!this.color.equals(other.color)) return false; return true; }
@Override @Pure public boolean equals(final Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; Hover other = (Hover) obj; if (this.contents == null) { if (other.contents != null) return false; } else if (!this.contents.equals(other.contents)) return false; if (this.range == null) { if (other.range != null) return false; } else if (!this.range.equals(other.range)) return false; return true; }
@Override @Pure public boolean equals(final Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; ColorPresentationParams other = (ColorPresentationParams) obj; if (this.textDocument == null) { if (other.textDocument != null) return false; } else if (!this.textDocument.equals(other.textDocument)) return false; if (this.color == null) { if (other.color != null) return false; } else if (!this.color.equals(other.color)) return false; if (this.range == null) { if (other.range != null) return false; } else if (!this.range.equals(other.range)) return false; return true; }