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

org.graylog2.contentpacks.model.entities.$AutoValue_StreamReferenceEntity Maven / Gradle / Ivy

There is a newer version: 6.1.4
Show newest version
package org.graylog2.contentpacks.model.entities;

import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.processing.Generated;
import javax.validation.constraints.NotBlank;
import org.graylog2.contentpacks.model.entities.references.ValueReference;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
abstract class $AutoValue_StreamReferenceEntity extends StreamReferenceEntity {

  private final @NotBlank ValueReference title;

  $AutoValue_StreamReferenceEntity(
      @NotBlank ValueReference title) {
    if (title == null) {
      throw new NullPointerException("Null title");
    }
    this.title = title;
  }

  @JsonProperty("title")
  @Override
  public @NotBlank ValueReference title() {
    return title;
  }

  @Override
  public String toString() {
    return "StreamReferenceEntity{"
        + "title=" + title
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof StreamReferenceEntity) {
      StreamReferenceEntity that = (StreamReferenceEntity) o;
      return this.title.equals(that.title());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= title.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy