org.eclipse.lsp4j.util.Preconditions Java Examples

The following examples show how to use org.eclipse.lsp4j.util.Preconditions. 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 File: SourcesItem.java    From build-server-protocol with Apache License 2.0 4 votes vote down vote up
public void setSources(@NonNull final List<SourceItem> sources) {
  this.sources = Preconditions.checkNotNull(sources, "sources");
}
 
Example #2
Source File: JvmRunEnvironmentResult.java    From build-server-protocol with Apache License 2.0 4 votes vote down vote up
public void setItems(@NonNull final List<JvmEnvironmentItem> items) {
  this.items = Preconditions.checkNotNull(items, "items");
}
 
Example #3
Source File: SourcesParams.java    From build-server-protocol with Apache License 2.0 4 votes vote down vote up
public void setTargets(@NonNull final List<BuildTargetIdentifier> targets) {
  this.targets = Preconditions.checkNotNull(targets, "targets");
}
 
Example #4
Source File: InitializeBuildResult.java    From build-server-protocol with Apache License 2.0 4 votes vote down vote up
public void setBspVersion(@NonNull final String bspVersion) {
  this.bspVersion = Preconditions.checkNotNull(bspVersion, "bspVersion");
}
 
Example #5
Source File: TestStart.java    From build-server-protocol with Apache License 2.0 4 votes vote down vote up
public void setDisplayName(@NonNull final String displayName) {
  this.displayName = Preconditions.checkNotNull(displayName, "displayName");
}
 
Example #6
Source File: TestProvider.java    From build-server-protocol with Apache License 2.0 4 votes vote down vote up
public void setLanguageIds(@NonNull final List<String> languageIds) {
  this.languageIds = Preconditions.checkNotNull(languageIds, "languageIds");
}
 
Example #7
Source File: TestReport.java    From build-server-protocol with Apache License 2.0 4 votes vote down vote up
public void setCancelled(@NonNull final Integer cancelled) {
  this.cancelled = Preconditions.checkNotNull(cancelled, "cancelled");
}
 
Example #8
Source File: TestReport.java    From build-server-protocol with Apache License 2.0 4 votes vote down vote up
public void setIgnored(@NonNull final Integer ignored) {
  this.ignored = Preconditions.checkNotNull(ignored, "ignored");
}
 
Example #9
Source File: TestReport.java    From build-server-protocol with Apache License 2.0 4 votes vote down vote up
public void setFailed(@NonNull final Integer failed) {
  this.failed = Preconditions.checkNotNull(failed, "failed");
}
 
Example #10
Source File: TestReport.java    From build-server-protocol with Apache License 2.0 4 votes vote down vote up
public void setPassed(@NonNull final Integer passed) {
  this.passed = Preconditions.checkNotNull(passed, "passed");
}
 
Example #11
Source File: JvmTestEnvironmentResult.java    From build-server-protocol with Apache License 2.0 4 votes vote down vote up
public void setItems(@NonNull final List<JvmEnvironmentItem> items) {
  this.items = Preconditions.checkNotNull(items, "items");
}
 
Example #12
Source File: InitializeBuildParams.java    From build-server-protocol with Apache License 2.0 4 votes vote down vote up
public void setVersion(@NonNull final String version) {
  this.version = Preconditions.checkNotNull(version, "version");
}
 
Example #13
Source File: DebugSessionParams.java    From build-server-protocol with Apache License 2.0 4 votes vote down vote up
public void setTargets(@NonNull final List<BuildTargetIdentifier> targets) {
  this.targets = Preconditions.checkNotNull(targets, "targets");
}
 
Example #14
Source File: BspConnectionDetails.java    From build-server-protocol with Apache License 2.0 4 votes vote down vote up
public void setBspVersion(@NonNull final String bspVersion) {
  this.bspVersion = Preconditions.checkNotNull(bspVersion, "bspVersion");
}
 
Example #15
Source File: ScalaTestClassesParams.java    From build-server-protocol with Apache License 2.0 4 votes vote down vote up
public void setTargets(@NonNull final List<BuildTargetIdentifier> targets) {
  this.targets = Preconditions.checkNotNull(targets, "targets");
}
 
Example #16
Source File: InitializeBuildParams.java    From build-server-protocol with Apache License 2.0 4 votes vote down vote up
public void setCapabilities(@NonNull final BuildClientCapabilities capabilities) {
  this.capabilities = Preconditions.checkNotNull(capabilities, "capabilities");
}
 
Example #17
Source File: ScalaMainClass.java    From build-server-protocol with Apache License 2.0 4 votes vote down vote up
public void setArguments(@NonNull final List<String> arguments) {
  this.arguments = Preconditions.checkNotNull(arguments, "arguments");
}
 
Example #18
Source File: CompileTask.java    From build-server-protocol with Apache License 2.0 4 votes vote down vote up
public void setTarget(@NonNull final BuildTargetIdentifier target) {
  this.target = Preconditions.checkNotNull(target, "target");
}
 
Example #19
Source File: TaskProgressParams.java    From build-server-protocol with Apache License 2.0 4 votes vote down vote up
public void setTaskId(@NonNull final TaskId taskId) {
  this.taskId = Preconditions.checkNotNull(taskId, "taskId");
}
 
Example #20
Source File: BuildTarget.java    From build-server-protocol with Apache License 2.0 4 votes vote down vote up
public void setCapabilities(@NonNull final BuildTargetCapabilities capabilities) {
  this.capabilities = Preconditions.checkNotNull(capabilities, "capabilities");
}
 
Example #21
Source File: InitializeBuildResult.java    From build-server-protocol with Apache License 2.0 4 votes vote down vote up
public void setDisplayName(@NonNull final String displayName) {
  this.displayName = Preconditions.checkNotNull(displayName, "displayName");
}
 
Example #22
Source File: Diagnostic.java    From build-server-protocol with Apache License 2.0 4 votes vote down vote up
public void setRange(@NonNull final Range range) {
  this.range = Preconditions.checkNotNull(range, "range");
}
 
Example #23
Source File: BuildTarget.java    From build-server-protocol with Apache License 2.0 4 votes vote down vote up
public void setTags(@NonNull final List<String> tags) {
  this.tags = Preconditions.checkNotNull(tags, "tags");
}
 
Example #24
Source File: BuildTarget.java    From build-server-protocol with Apache License 2.0 4 votes vote down vote up
public void setId(@NonNull final BuildTargetIdentifier id) {
  this.id = Preconditions.checkNotNull(id, "id");
}
 
Example #25
Source File: ScalaTestClassesItem.java    From build-server-protocol with Apache License 2.0 4 votes vote down vote up
public void setTarget(@NonNull final BuildTargetIdentifier target) {
  this.target = Preconditions.checkNotNull(target, "target");
}
 
Example #26
Source File: ResourcesParams.java    From build-server-protocol with Apache License 2.0 4 votes vote down vote up
public void setTargets(@NonNull final List<BuildTargetIdentifier> targets) {
  this.targets = Preconditions.checkNotNull(targets, "targets");
}
 
Example #27
Source File: SourceItem.java    From build-server-protocol with Apache License 2.0 4 votes vote down vote up
public void setGenerated(@NonNull final Boolean generated) {
  this.generated = Preconditions.checkNotNull(generated, "generated");
}
 
Example #28
Source File: SourceItem.java    From build-server-protocol with Apache License 2.0 4 votes vote down vote up
public void setKind(@NonNull final SourceItemKind kind) {
  this.kind = Preconditions.checkNotNull(kind, "kind");
}
 
Example #29
Source File: TaskFinishParams.java    From build-server-protocol with Apache License 2.0 4 votes vote down vote up
public void setTaskId(@NonNull final TaskId taskId) {
  this.taskId = Preconditions.checkNotNull(taskId, "taskId");
}
 
Example #30
Source File: RunResult.java    From build-server-protocol with Apache License 2.0 4 votes vote down vote up
public void setStatusCode(@NonNull final StatusCode statusCode) {
  this.statusCode = Preconditions.checkNotNull(statusCode, "statusCode");
}