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

com.algolia.model.abtesting.Currency Maven / Gradle / Ivy

The newest version!
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost
// - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.

package com.algolia.model.abtesting;

import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.*;
import java.util.Objects;

/** Currency */
public class Currency {

  @JsonProperty("currency")
  private String currency;

  @JsonProperty("revenue")
  private Double revenue;

  @JsonProperty("mean")
  private Double mean;

  @JsonProperty("standardDeviation")
  private Double standardDeviation;

  public Currency setCurrency(String currency) {
    this.currency = currency;
    return this;
  }

  /** Currency code. */
  @javax.annotation.Nullable
  public String getCurrency() {
    return currency;
  }

  public Currency setRevenue(Double revenue) {
    this.revenue = revenue;
    return this;
  }

  /** Revenue for this currency. */
  @javax.annotation.Nullable
  public Double getRevenue() {
    return revenue;
  }

  public Currency setMean(Double mean) {
    this.mean = mean;
    return this;
  }

  /** Mean for this currency. */
  @javax.annotation.Nullable
  public Double getMean() {
    return mean;
  }

  public Currency setStandardDeviation(Double standardDeviation) {
    this.standardDeviation = standardDeviation;
    return this;
  }

  /** Standard deviation for this currency. */
  @javax.annotation.Nullable
  public Double getStandardDeviation() {
    return standardDeviation;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    Currency currency = (Currency) o;
    return (
      Objects.equals(this.currency, currency.currency) &&
      Objects.equals(this.revenue, currency.revenue) &&
      Objects.equals(this.mean, currency.mean) &&
      Objects.equals(this.standardDeviation, currency.standardDeviation)
    );
  }

  @Override
  public int hashCode() {
    return Objects.hash(currency, revenue, mean, standardDeviation);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class Currency {\n");
    sb.append("    currency: ").append(toIndentedString(currency)).append("\n");
    sb.append("    revenue: ").append(toIndentedString(revenue)).append("\n");
    sb.append("    mean: ").append(toIndentedString(mean)).append("\n");
    sb.append("    standardDeviation: ").append(toIndentedString(standardDeviation)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy