All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.java.scala.build.bsp.WrappedSourcesResult Maven / Gradle / Ivy

package scala.build.bsp;

import java.util.List;
import org.eclipse.lsp4j.jsonrpc.validation.NonNull;
import org.eclipse.lsp4j.util.Preconditions;
import org.eclipse.xtext.xbase.lib.Pure;
import org.eclipse.xtext.xbase.lib.util.ToStringBuilder;

@SuppressWarnings("all")
public class WrappedSourcesResult {
  @NonNull
  private List items;

  public WrappedSourcesResult(@NonNull final List items) {
    this.items = items;
  }

  @Pure
  @NonNull
  public List getItems() {
    return this.items;
  }

  public void setItems(@NonNull final List items) {
    this.items = Preconditions.checkNotNull(items, "items");
  }

  @Override
  @Pure
  public String toString() {
    ToStringBuilder b = new ToStringBuilder(this);
    b.add("items", this.items);
    return b.toString();
  }

  @Override
  @Pure
  public boolean equals(final Object obj) {
    if (this == obj)
      return true;
    if (obj == null)
      return false;
    if (getClass() != obj.getClass())
      return false;
    WrappedSourcesResult other = (WrappedSourcesResult) obj;
    if (this.items == null) {
      if (other.items != null)
        return false;
    } else if (!this.items.equals(other.items))
      return false;
    return true;
  }

  @Override
  @Pure
  public int hashCode() {
    return 31 * 1 + ((this.items== null) ? 0 : this.items.hashCode());
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy