Java Code Examples for org.eclipse.xtext.xbase.lib.Pure

The following examples show how to use org.eclipse.xtext.xbase.lib.Pure. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source Project: lemminx   Author: eclipse   File: ExtendedCodeLensCapabilities.java    License: Eclipse Public License 2.0 6 votes vote down vote up
@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;
	ExtendedCodeLensCapabilities other = (ExtendedCodeLensCapabilities) obj;
	if (this.codeLensKind == null) {
		if (other.codeLensKind != null)
			return false;
	} else if (!this.codeLensKind.equals(other.codeLensKind))
		return false;
	return true;
}
 
Example #2
Source Project: build-server-protocol   Author: build-server-protocol   File: TestStart.java    License: Apache License 2.0 6 votes vote down vote up
@Override
@Pure
public boolean equals(final Object obj) {
  if (this == obj)
    return true;
  if (obj == null)
    return false;
  if (getClass() != obj.getClass())
    return false;
  TestStart other = (TestStart) obj;
  if (this.displayName == null) {
    if (other.displayName != null)
      return false;
  } else if (!this.displayName.equals(other.displayName))
    return false;
  if (this.location == null) {
    if (other.location != null)
      return false;
  } else if (!this.location.equals(other.location))
    return false;
  return true;
}
 
Example #3
Source Project: build-server-protocol   Author: build-server-protocol   File: DependencySourcesItem.java    License: Apache License 2.0 6 votes vote down vote up
@Override
@Pure
public boolean equals(final Object obj) {
  if (this == obj)
    return true;
  if (obj == null)
    return false;
  if (getClass() != obj.getClass())
    return false;
  DependencySourcesItem other = (DependencySourcesItem) obj;
  if (this.target == null) {
    if (other.target != null)
      return false;
  } else if (!this.target.equals(other.target))
    return false;
  if (this.sources == null) {
    if (other.sources != null)
      return false;
  } else if (!this.sources.equals(other.sources))
    return false;
  return true;
}
 
Example #4
Source Project: build-server-protocol   Author: build-server-protocol   File: JvmTestEnvironmentParams.java    License: Apache License 2.0 6 votes vote down vote up
@Override
@Pure
public boolean equals(final Object obj) {
  if (this == obj)
    return true;
  if (obj == null)
    return false;
  if (getClass() != obj.getClass())
    return false;
  JvmTestEnvironmentParams other = (JvmTestEnvironmentParams) obj;
  if (this.targets == null) {
    if (other.targets != null)
      return false;
  } else if (!this.targets.equals(other.targets))
    return false;
  return true;
}
 
Example #5
Source Project: build-server-protocol   Author: build-server-protocol   File: CleanCacheParams.java    License: Apache License 2.0 6 votes vote down vote up
@Override
@Pure
public boolean equals(final Object obj) {
  if (this == obj)
    return true;
  if (obj == null)
    return false;
  if (getClass() != obj.getClass())
    return false;
  CleanCacheParams other = (CleanCacheParams) obj;
  if (this.targets == null) {
    if (other.targets != null)
      return false;
  } else if (!this.targets.equals(other.targets))
    return false;
  return true;
}
 
Example #6
Source Project: build-server-protocol   Author: build-server-protocol   File: InverseSourcesResult.java    License: Apache License 2.0 6 votes vote down vote up
@Override
@Pure
public boolean equals(final Object obj) {
  if (this == obj)
    return true;
  if (obj == null)
    return false;
  if (getClass() != obj.getClass())
    return false;
  InverseSourcesResult other = (InverseSourcesResult) obj;
  if (this.targets == null) {
    if (other.targets != null)
      return false;
  } else if (!this.targets.equals(other.targets))
    return false;
  return true;
}
 
Example #7
Source Project: build-server-protocol   Author: build-server-protocol   File: DiagnosticRelatedInformation.java    License: Apache License 2.0 6 votes vote down vote up
@Override
@Pure
public boolean equals(final Object obj) {
  if (this == obj)
    return true;
  if (obj == null)
    return false;
  if (getClass() != obj.getClass())
    return false;
  DiagnosticRelatedInformation other = (DiagnosticRelatedInformation) obj;
  if (this.location == null) {
    if (other.location != null)
      return false;
  } else if (!this.location.equals(other.location))
    return false;
  if (this.message == null) {
    if (other.message != null)
      return false;
  } else if (!this.message.equals(other.message))
    return false;
  return true;
}
 
Example #8
Source Project: build-server-protocol   Author: build-server-protocol   File: WorkspaceBuildTargetsResult.java    License: Apache License 2.0 6 votes vote down vote up
@Override
@Pure
public boolean equals(final Object obj) {
  if (this == obj)
    return true;
  if (obj == null)
    return false;
  if (getClass() != obj.getClass())
    return false;
  WorkspaceBuildTargetsResult other = (WorkspaceBuildTargetsResult) obj;
  if (this.targets == null) {
    if (other.targets != null)
      return false;
  } else if (!this.targets.equals(other.targets))
    return false;
  return true;
}
 
Example #9
Source Project: build-server-protocol   Author: build-server-protocol   File: ShowMessageParams.java    License: Apache License 2.0 5 votes vote down vote up
@Override
@Pure
public boolean equals(final Object obj) {
  if (this == obj)
    return true;
  if (obj == null)
    return false;
  if (getClass() != obj.getClass())
    return false;
  ShowMessageParams other = (ShowMessageParams) obj;
  if (this.type == null) {
    if (other.type != null)
      return false;
  } else if (!this.type.equals(other.type))
    return false;
  if (this.task == null) {
    if (other.task != null)
      return false;
  } else if (!this.task.equals(other.task))
    return false;
  if (this.originId == null) {
    if (other.originId != null)
      return false;
  } else if (!this.originId.equals(other.originId))
    return false;
  if (this.message == null) {
    if (other.message != null)
      return false;
  } else if (!this.message.equals(other.message))
    return false;
  return true;
}
 
Example #10
Source Project: lemminx   Author: eclipse   File: CodeLensKindCapabilities.java    License: Eclipse Public License 2.0 5 votes vote down vote up
@Override
@Pure
public String toString() {
	ToStringBuilder b = new ToStringBuilder(this);
	b.add("valueSet", this.valueSet);
	return b.toString();
}
 
Example #11
Source Project: build-server-protocol   Author: build-server-protocol   File: DebugSessionParams.java    License: Apache License 2.0 5 votes vote down vote up
@Override
@Pure
public int hashCode() {
  final int prime = 31;
  int result = 1;
  result = prime * result + ((this.targets== null) ? 0 : this.targets.hashCode());
  result = prime * result + ((this.dataKind== null) ? 0 : this.dataKind.hashCode());
  return prime * result + ((this.data== null) ? 0 : this.data.hashCode());
}
 
Example #12
Source Project: build-server-protocol   Author: build-server-protocol   File: ScalaMainClassesResult.java    License: Apache License 2.0 5 votes vote down vote up
@Override
@Pure
public String toString() {
  ToStringBuilder b = new ToStringBuilder(this);
  b.add("items", this.items);
  return b.toString();
}
 
Example #13
Source Project: build-server-protocol   Author: build-server-protocol   File: Position.java    License: Apache License 2.0 5 votes vote down vote up
@Override
@Pure
public String toString() {
  ToStringBuilder b = new ToStringBuilder(this);
  b.add("line", this.line);
  b.add("character", this.character);
  return b.toString();
}
 
Example #14
Source Project: build-server-protocol   Author: build-server-protocol   File: BuildTarget.java    License: Apache License 2.0 5 votes vote down vote up
@Override
@Pure
public String toString() {
  ToStringBuilder b = new ToStringBuilder(this);
  b.add("id", this.id);
  b.add("displayName", this.displayName);
  b.add("baseDirectory", this.baseDirectory);
  b.add("tags", this.tags);
  b.add("languageIds", this.languageIds);
  b.add("dependencies", this.dependencies);
  b.add("capabilities", this.capabilities);
  b.add("dataKind", this.dataKind);
  b.add("data", this.data);
  return b.toString();
}
 
Example #15
Source Project: build-server-protocol   Author: build-server-protocol   File: ScalaMainClassesItem.java    License: Apache License 2.0 5 votes vote down vote up
@Override
@Pure
public String toString() {
  ToStringBuilder b = new ToStringBuilder(this);
  b.add("target", this.target);
  b.add("classes", this.classes);
  return b.toString();
}
 
Example #16
Source Project: build-server-protocol   Author: build-server-protocol   File: TaskStartParams.java    License: Apache License 2.0 5 votes vote down vote up
@Override
@Pure
public int hashCode() {
  final int prime = 31;
  int result = 1;
  result = prime * result + ((this.taskId== null) ? 0 : this.taskId.hashCode());
  result = prime * result + ((this.eventTime== null) ? 0 : this.eventTime.hashCode());
  result = prime * result + ((this.message== null) ? 0 : this.message.hashCode());
  result = prime * result + ((this.dataKind== null) ? 0 : this.dataKind.hashCode());
  return prime * result + ((this.data== null) ? 0 : this.data.hashCode());
}
 
Example #17
Source Project: build-server-protocol   Author: build-server-protocol   File: SourcesItem.java    License: Apache License 2.0 5 votes vote down vote up
@Override
@Pure
public boolean equals(final Object obj) {
  if (this == obj)
    return true;
  if (obj == null)
    return false;
  if (getClass() != obj.getClass())
    return false;
  SourcesItem other = (SourcesItem) obj;
  if (this.target == null) {
    if (other.target != null)
      return false;
  } else if (!this.target.equals(other.target))
    return false;
  if (this.sources == null) {
    if (other.sources != null)
      return false;
  } else if (!this.sources.equals(other.sources))
    return false;
  if (this.roots == null) {
    if (other.roots != null)
      return false;
  } else if (!this.roots.equals(other.roots))
    return false;
  return true;
}
 
Example #18
Source Project: build-server-protocol   Author: build-server-protocol   File: CompileReport.java    License: Apache License 2.0 5 votes vote down vote up
@Override
@Pure
public boolean equals(final Object obj) {
  if (this == obj)
    return true;
  if (obj == null)
    return false;
  if (getClass() != obj.getClass())
    return false;
  CompileReport other = (CompileReport) obj;
  if (this.target == null) {
    if (other.target != null)
      return false;
  } else if (!this.target.equals(other.target))
    return false;
  if (this.originId == null) {
    if (other.originId != null)
      return false;
  } else if (!this.originId.equals(other.originId))
    return false;
  if (this.errors == null) {
    if (other.errors != null)
      return false;
  } else if (!this.errors.equals(other.errors))
    return false;
  if (this.warnings == null) {
    if (other.warnings != null)
      return false;
  } else if (!this.warnings.equals(other.warnings))
    return false;
  if (this.time == null) {
    if (other.time != null)
      return false;
  } else if (!this.time.equals(other.time))
    return false;
  return true;
}
 
Example #19
Source Project: build-server-protocol   Author: build-server-protocol   File: ResourcesParams.java    License: Apache License 2.0 5 votes vote down vote up
@Override
@Pure
public String toString() {
  ToStringBuilder b = new ToStringBuilder(this);
  b.add("targets", this.targets);
  return b.toString();
}
 
Example #20
Source Project: build-server-protocol   Author: build-server-protocol   File: SourcesItem.java    License: Apache License 2.0 5 votes vote down vote up
@Override
@Pure
public int hashCode() {
  final int prime = 31;
  int result = 1;
  result = prime * result + ((this.target== null) ? 0 : this.target.hashCode());
  result = prime * result + ((this.sources== null) ? 0 : this.sources.hashCode());
  return prime * result + ((this.roots== null) ? 0 : this.roots.hashCode());
}
 
Example #21
Source Project: build-server-protocol   Author: build-server-protocol   File: SourcesParams.java    License: Apache License 2.0 5 votes vote down vote up
@Override
@Pure
public String toString() {
  ToStringBuilder b = new ToStringBuilder(this);
  b.add("targets", this.targets);
  return b.toString();
}
 
Example #22
Source Project: build-server-protocol   Author: build-server-protocol   File: CompileResult.java    License: Apache License 2.0 5 votes vote down vote up
@Override
@Pure
public boolean equals(final Object obj) {
  if (this == obj)
    return true;
  if (obj == null)
    return false;
  if (getClass() != obj.getClass())
    return false;
  CompileResult other = (CompileResult) obj;
  if (this.originId == null) {
    if (other.originId != null)
      return false;
  } else if (!this.originId.equals(other.originId))
    return false;
  if (this.dataKind == null) {
    if (other.dataKind != null)
      return false;
  } else if (!this.dataKind.equals(other.dataKind))
    return false;
  if (this.data == null) {
    if (other.data != null)
      return false;
  } else if (!this.data.equals(other.data))
    return false;
  if (this.statusCode == null) {
    if (other.statusCode != null)
      return false;
  } else if (!this.statusCode.equals(other.statusCode))
    return false;
  return true;
}
 
Example #23
Source Project: build-server-protocol   Author: build-server-protocol   File: CompileResult.java    License: Apache License 2.0 5 votes vote down vote up
@Override
@Pure
public int hashCode() {
  final int prime = 31;
  int result = 1;
  result = prime * result + ((this.originId== null) ? 0 : this.originId.hashCode());
  result = prime * result + ((this.dataKind== null) ? 0 : this.dataKind.hashCode());
  result = prime * result + ((this.data== null) ? 0 : this.data.hashCode());
  return prime * result + ((this.statusCode== null) ? 0 : this.statusCode.hashCode());
}
 
Example #24
Source Project: build-server-protocol   Author: build-server-protocol   File: TestTask.java    License: Apache License 2.0 5 votes vote down vote up
@Override
@Pure
public String toString() {
  ToStringBuilder b = new ToStringBuilder(this);
  b.add("target", this.target);
  return b.toString();
}
 
Example #25
Source Project: build-server-protocol   Author: build-server-protocol   File: InverseSourcesResult.java    License: Apache License 2.0 5 votes vote down vote up
@Override
@Pure
public String toString() {
  ToStringBuilder b = new ToStringBuilder(this);
  b.add("targets", this.targets);
  return b.toString();
}
 
Example #26
Source Project: build-server-protocol   Author: build-server-protocol   File: Range.java    License: Apache License 2.0 5 votes vote down vote up
@Override
@Pure
public int hashCode() {
  final int prime = 31;
  int result = 1;
  result = prime * result + ((this.start== null) ? 0 : this.start.hashCode());
  return prime * result + ((this.end== null) ? 0 : this.end.hashCode());
}
 
Example #27
Source Project: build-server-protocol   Author: build-server-protocol   File: ScalaBuildTarget.java    License: Apache License 2.0 5 votes vote down vote up
@Override
@Pure
public int hashCode() {
  final int prime = 31;
  int result = 1;
  result = prime * result + ((this.scalaOrganization== null) ? 0 : this.scalaOrganization.hashCode());
  result = prime * result + ((this.scalaVersion== null) ? 0 : this.scalaVersion.hashCode());
  result = prime * result + ((this.scalaBinaryVersion== null) ? 0 : this.scalaBinaryVersion.hashCode());
  result = prime * result + ((this.platform== null) ? 0 : this.platform.hashCode());
  result = prime * result + ((this.jars== null) ? 0 : this.jars.hashCode());
  return prime * result + ((this.jvmBuildTarget== null) ? 0 : this.jvmBuildTarget.hashCode());
}
 
Example #28
Source Project: build-server-protocol   Author: build-server-protocol   File: TestResult.java    License: Apache License 2.0 5 votes vote down vote up
@Override
@Pure
public boolean equals(final Object obj) {
  if (this == obj)
    return true;
  if (obj == null)
    return false;
  if (getClass() != obj.getClass())
    return false;
  TestResult other = (TestResult) obj;
  if (this.originId == null) {
    if (other.originId != null)
      return false;
  } else if (!this.originId.equals(other.originId))
    return false;
  if (this.dataKind == null) {
    if (other.dataKind != null)
      return false;
  } else if (!this.dataKind.equals(other.dataKind))
    return false;
  if (this.data == null) {
    if (other.data != null)
      return false;
  } else if (!this.data.equals(other.data))
    return false;
  if (this.statusCode == null) {
    if (other.statusCode != null)
      return false;
  } else if (!this.statusCode.equals(other.statusCode))
    return false;
  return true;
}
 
Example #29
Source Project: build-server-protocol   Author: build-server-protocol   File: ScalaMainClass.java    License: Apache License 2.0 5 votes vote down vote up
@Override
@Pure
public int hashCode() {
  final int prime = 31;
  int result = 1;
  result = prime * result + ((this.className== null) ? 0 : this.className.hashCode());
  result = prime * result + ((this.arguments== null) ? 0 : this.arguments.hashCode());
  result = prime * result + ((this.jvmOptions== null) ? 0 : this.jvmOptions.hashCode());
  return prime * result + ((this.environmentVariables== null) ? 0 : this.environmentVariables.hashCode());
}
 
Example #30
Source Project: build-server-protocol   Author: build-server-protocol   File: ScalaTestParams.java    License: Apache License 2.0 5 votes vote down vote up
@Override
@Pure
public String toString() {
  ToStringBuilder b = new ToStringBuilder(this);
  b.add("testClasses", this.testClasses);
  return b.toString();
}