@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 int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((this.range== null) ? 0 : this.range.hashCode()); return prime * result + ((this.color== null) ? 0 : this.color.hashCode()); } }
public ColorDto(org.eclipse.lsp4j.Color o) { double redVal = (double)makeDto(o.getRed());; setRed((double)redVal); double greenVal = (double)makeDto(o.getGreen());; setGreen((double)greenVal); double blueVal = (double)makeDto(o.getBlue());; setBlue((double)blueVal); double alphaVal = (double)makeDto(o.getAlpha());; setAlpha((double)alphaVal); }
@Override @Pure public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((this.range== null) ? 0 : this.range.hashCode()); return prime * result + ((this.color== null) ? 0 : this.color.hashCode()); } }
@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 int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((this.textDocument== null) ? 0 : this.textDocument.hashCode()); result = prime * result + ((this.color== null) ? 0 : this.color.hashCode()); return prime * result + ((this.range== null) ? 0 : this.range.hashCode()); } }
@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; }
@Override @Pure public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((this.textDocument== null) ? 0 : this.textDocument.hashCode()); result = prime * result + ((this.color== null) ? 0 : this.color.hashCode()); return prime * result + ((this.range== null) ? 0 : this.range.hashCode()); } }
@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; }