Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* FactSet Estimates
* Gain access to 20+ years of comprehensive estimates and statistics of over 250+ estimated metrics, including financial statement items, product segments, geosegments, and industry metrics. FactSet's consensus estimates are aggregated from a wide base of over 800+ contributors and cover over 19,000 active companies across 90+ countries. Data returned can be accessed on the data frequencies based on quarterly, fiscal years, and calendar years. FactSet Estimates updates on a real time basis intraday (every 5 minutes). Updating times vary based on earning season vs. non-earning season but the goal is to have the data available to the client within a few hours that FactSet receives updated information. Often times updates times can be much faster as FactSet has always been known as one of the fastest estimate providers in the market.
*
* The version of the OpenAPI document: 2.5.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.factset.sdk.FactSetEstimates.models;
import java.util.Objects;
import java.util.Arrays;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.time.LocalDate;
import org.openapitools.jackson.nullable.JsonNullable;
import com.fasterxml.jackson.annotation.JsonIgnore;
import org.openapitools.jackson.nullable.JsonNullable;
import java.util.NoSuchElementException;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.factset.sdk.FactSetEstimates.JSON;
/**
* ConsensusEstimate
*/
@JsonPropertyOrder({
ConsensusEstimate.JSON_PROPERTY_REQUEST_ID,
ConsensusEstimate.JSON_PROPERTY_FSYM_ID,
ConsensusEstimate.JSON_PROPERTY_METRIC,
ConsensusEstimate.JSON_PROPERTY_PERIODICITY,
ConsensusEstimate.JSON_PROPERTY_FISCAL_PERIOD,
ConsensusEstimate.JSON_PROPERTY_FISCAL_YEAR,
ConsensusEstimate.JSON_PROPERTY_FISCAL_END_DATE,
ConsensusEstimate.JSON_PROPERTY_RELATIVE_PERIOD,
ConsensusEstimate.JSON_PROPERTY_ESTIMATE_DATE,
ConsensusEstimate.JSON_PROPERTY_CURRENCY,
ConsensusEstimate.JSON_PROPERTY_ESTIMATE_CURRENCY,
ConsensusEstimate.JSON_PROPERTY_MEAN,
ConsensusEstimate.JSON_PROPERTY_MEDIAN,
ConsensusEstimate.JSON_PROPERTY_STANDARD_DEVIATION,
ConsensusEstimate.JSON_PROPERTY_HIGH,
ConsensusEstimate.JSON_PROPERTY_LOW,
ConsensusEstimate.JSON_PROPERTY_ESTIMATE_COUNT,
ConsensusEstimate.JSON_PROPERTY_UP,
ConsensusEstimate.JSON_PROPERTY_DOWN
})
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class ConsensusEstimate implements Serializable {
private static final long serialVersionUID = 1L;
public static final String JSON_PROPERTY_REQUEST_ID = "requestId";
private String requestId;
public static final String JSON_PROPERTY_FSYM_ID = "fsymId";
private JsonNullable fsymId = JsonNullable.undefined();
public static final String JSON_PROPERTY_METRIC = "metric";
private JsonNullable metric = JsonNullable.undefined();
public static final String JSON_PROPERTY_PERIODICITY = "periodicity";
private JsonNullable periodicity = JsonNullable.undefined();
public static final String JSON_PROPERTY_FISCAL_PERIOD = "fiscalPeriod";
private JsonNullable fiscalPeriod = JsonNullable.undefined();
public static final String JSON_PROPERTY_FISCAL_YEAR = "fiscalYear";
private JsonNullable fiscalYear = JsonNullable.undefined();
public static final String JSON_PROPERTY_FISCAL_END_DATE = "fiscalEndDate";
private JsonNullable fiscalEndDate = JsonNullable.undefined();
public static final String JSON_PROPERTY_RELATIVE_PERIOD = "relativePeriod";
private JsonNullable relativePeriod = JsonNullable.undefined();
public static final String JSON_PROPERTY_ESTIMATE_DATE = "estimateDate";
private JsonNullable estimateDate = JsonNullable.undefined();
public static final String JSON_PROPERTY_CURRENCY = "currency";
private JsonNullable currency = JsonNullable.undefined();
public static final String JSON_PROPERTY_ESTIMATE_CURRENCY = "estimateCurrency";
private JsonNullable estimateCurrency = JsonNullable.undefined();
public static final String JSON_PROPERTY_MEAN = "mean";
private JsonNullable mean = JsonNullable.undefined();
public static final String JSON_PROPERTY_MEDIAN = "median";
private JsonNullable median = JsonNullable.undefined();
public static final String JSON_PROPERTY_STANDARD_DEVIATION = "standardDeviation";
private JsonNullable standardDeviation = JsonNullable.undefined();
public static final String JSON_PROPERTY_HIGH = "high";
private JsonNullable high = JsonNullable.undefined();
public static final String JSON_PROPERTY_LOW = "low";
private JsonNullable low = JsonNullable.undefined();
public static final String JSON_PROPERTY_ESTIMATE_COUNT = "estimateCount";
private JsonNullable estimateCount = JsonNullable.undefined();
public static final String JSON_PROPERTY_UP = "up";
private JsonNullable up = JsonNullable.undefined();
public static final String JSON_PROPERTY_DOWN = "down";
private JsonNullable down = JsonNullable.undefined();
public ConsensusEstimate() {
}
public ConsensusEstimate requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* Identifier that was used for the request.
* @return requestId
**/
@jakarta.annotation.Nullable
@ApiModelProperty(example = "IBM-US", value = "Identifier that was used for the request.")
@JsonProperty(JSON_PROPERTY_REQUEST_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getRequestId() {
return requestId;
}
@JsonProperty(JSON_PROPERTY_REQUEST_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setRequestId(String requestId) {
this.requestId = requestId;
}
public ConsensusEstimate fsymId(String fsymId) {
this.fsymId = JsonNullable.of(fsymId);
return this;
}
/**
* Factset Regional Security Identifier. Six alpha-numeric characters, excluding vowels, with an -R suffix (XXXXXX-R). Identifies the security's best regional security data series per currency. For equities, all primary listings per region and currency are allocated a regional-level permanent identifier. The regional-level permanent identifier will be available once a SEDOL representing the region/currency has been allocated and the identifiers are on FactSet.
* @return fsymId
**/
@jakarta.annotation.Nullable
@ApiModelProperty(example = "SJY281-R", value = "Factset Regional Security Identifier. Six alpha-numeric characters, excluding vowels, with an -R suffix (XXXXXX-R). Identifies the security's best regional security data series per currency. For equities, all primary listings per region and currency are allocated a regional-level permanent identifier. The regional-level permanent identifier will be available once a SEDOL representing the region/currency has been allocated and the identifiers are on FactSet.")
@JsonIgnore
public String getFsymId() {
return fsymId.orElse(null);
}
@JsonProperty(JSON_PROPERTY_FSYM_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getFsymId_JsonNullable() {
return fsymId;
}
@JsonProperty(JSON_PROPERTY_FSYM_ID)
public void setFsymId_JsonNullable(JsonNullable fsymId) {
this.fsymId = fsymId;
}
public void setFsymId(String fsymId) {
this.fsymId = JsonNullable.of(fsymId);
}
public ConsensusEstimate metric(String metric) {
this.metric = JsonNullable.of(metric);
return this;
}
/**
* Company's Financial statement 'metric' that is estimated. Use the factset-estimates/v#/metrics endpoint for a complete list. For more details, visit [Online Assistant Page #15034](https://oa.apps.factset.com/pages/15034)
* @return metric
**/
@jakarta.annotation.Nullable
@ApiModelProperty(example = "SALES", value = "Company's Financial statement 'metric' that is estimated. Use the factset-estimates/v#/metrics endpoint for a complete list. For more details, visit [Online Assistant Page #15034](https://oa.apps.factset.com/pages/15034)")
@JsonIgnore
public String getMetric() {
return metric.orElse(null);
}
@JsonProperty(JSON_PROPERTY_METRIC)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getMetric_JsonNullable() {
return metric;
}
@JsonProperty(JSON_PROPERTY_METRIC)
public void setMetric_JsonNullable(JsonNullable metric) {
this.metric = metric;
}
public void setMetric(String metric) {
this.metric = JsonNullable.of(metric);
}
public ConsensusEstimate periodicity(String periodicity) {
this.periodicity = JsonNullable.of(periodicity);
return this;
}
/**
* The reporting interval for the estimate. This is derived from Estimate Date and is translated to the Period List = ANN, QTR, SEMI, LTMA, or NMTA.
* @return periodicity
**/
@jakarta.annotation.Nullable
@ApiModelProperty(example = "ANN", value = "The reporting interval for the estimate. This is derived from Estimate Date and is translated to the Period List = ANN, QTR, SEMI, LTMA, or NMTA.")
@JsonIgnore
public String getPeriodicity() {
return periodicity.orElse(null);
}
@JsonProperty(JSON_PROPERTY_PERIODICITY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getPeriodicity_JsonNullable() {
return periodicity;
}
@JsonProperty(JSON_PROPERTY_PERIODICITY)
public void setPeriodicity_JsonNullable(JsonNullable periodicity) {
this.periodicity = periodicity;
}
public void setPeriodicity(String periodicity) {
this.periodicity = JsonNullable.of(periodicity);
}
public ConsensusEstimate fiscalPeriod(Integer fiscalPeriod) {
this.fiscalPeriod = JsonNullable.of(fiscalPeriod);
return this;
}
/**
* Company's 'fiscal period' for the estimate record. Periods for periodicity of ANN = 1, and SEMI = 2. For more details, visit [Online Assistant Page #16598](https://oa.apps.factset.com/pages/16598).
* @return fiscalPeriod
**/
@jakarta.annotation.Nullable
@ApiModelProperty(example = "4", value = "Company's 'fiscal period' for the estimate record. Periods for periodicity of ANN = 1, and SEMI = 2. For more details, visit [Online Assistant Page #16598](https://oa.apps.factset.com/pages/16598).")
@JsonIgnore
public Integer getFiscalPeriod() {
return fiscalPeriod.orElse(null);
}
@JsonProperty(JSON_PROPERTY_FISCAL_PERIOD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getFiscalPeriod_JsonNullable() {
return fiscalPeriod;
}
@JsonProperty(JSON_PROPERTY_FISCAL_PERIOD)
public void setFiscalPeriod_JsonNullable(JsonNullable fiscalPeriod) {
this.fiscalPeriod = fiscalPeriod;
}
public void setFiscalPeriod(Integer fiscalPeriod) {
this.fiscalPeriod = JsonNullable.of(fiscalPeriod);
}
public ConsensusEstimate fiscalYear(Integer fiscalYear) {
this.fiscalYear = JsonNullable.of(fiscalYear);
return this;
}
/**
* Company's 'fiscal year' for the estimate record. For more details, visit [Online Assistant Page #16598](https://oa.apps.factset.com/pages/16598)
* @return fiscalYear
**/
@jakarta.annotation.Nullable
@ApiModelProperty(example = "2018", value = "Company's 'fiscal year' for the estimate record. For more details, visit [Online Assistant Page #16598](https://oa.apps.factset.com/pages/16598)")
@JsonIgnore
public Integer getFiscalYear() {
return fiscalYear.orElse(null);
}
@JsonProperty(JSON_PROPERTY_FISCAL_YEAR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getFiscalYear_JsonNullable() {
return fiscalYear;
}
@JsonProperty(JSON_PROPERTY_FISCAL_YEAR)
public void setFiscalYear_JsonNullable(JsonNullable fiscalYear) {
this.fiscalYear = fiscalYear;
}
public void setFiscalYear(Integer fiscalYear) {
this.fiscalYear = JsonNullable.of(fiscalYear);
}
public ConsensusEstimate fiscalEndDate(LocalDate fiscalEndDate) {
this.fiscalEndDate = JsonNullable.of(fiscalEndDate);
return this;
}
/**
* Company's 'fiscal end date' for the estimate record expressed in YYYY-MM-DD format. For more details, visit [Online Assistant Page #16598](https://oa.apps.factset.com/pages/16598)
* @return fiscalEndDate
**/
@jakarta.annotation.Nullable
@ApiModelProperty(example = "Sun Dec 31 00:00:00 UTC 2017", value = "Company's 'fiscal end date' for the estimate record expressed in YYYY-MM-DD format. For more details, visit [Online Assistant Page #16598](https://oa.apps.factset.com/pages/16598)")
@JsonIgnore
public LocalDate getFiscalEndDate() {
return fiscalEndDate.orElse(null);
}
@JsonProperty(JSON_PROPERTY_FISCAL_END_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getFiscalEndDate_JsonNullable() {
return fiscalEndDate;
}
@JsonProperty(JSON_PROPERTY_FISCAL_END_DATE)
public void setFiscalEndDate_JsonNullable(JsonNullable fiscalEndDate) {
this.fiscalEndDate = fiscalEndDate;
}
public void setFiscalEndDate(LocalDate fiscalEndDate) {
this.fiscalEndDate = JsonNullable.of(fiscalEndDate);
}
public ConsensusEstimate relativePeriod(Integer relativePeriod) {
this.relativePeriod = JsonNullable.of(relativePeriod);
return this;
}
/**
* 'Fiscal period' based on relationship to 'estimate date'. This is not applicable for fixed-consensus endpoint. For more details, visit [Online Assistant Page #16598](https://oa.apps.factset.com/pages/16598)
* @return relativePeriod
**/
@jakarta.annotation.Nullable
@ApiModelProperty(example = "2", value = "'Fiscal period' based on relationship to 'estimate date'. This is not applicable for fixed-consensus endpoint. For more details, visit [Online Assistant Page #16598](https://oa.apps.factset.com/pages/16598)")
@JsonIgnore
public Integer getRelativePeriod() {
return relativePeriod.orElse(null);
}
@JsonProperty(JSON_PROPERTY_RELATIVE_PERIOD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getRelativePeriod_JsonNullable() {
return relativePeriod;
}
@JsonProperty(JSON_PROPERTY_RELATIVE_PERIOD)
public void setRelativePeriod_JsonNullable(JsonNullable relativePeriod) {
this.relativePeriod = relativePeriod;
}
public void setRelativePeriod(Integer relativePeriod) {
this.relativePeriod = JsonNullable.of(relativePeriod);
}
public ConsensusEstimate estimateDate(LocalDate estimateDate) {
this.estimateDate = JsonNullable.of(estimateDate);
return this;
}
/**
* Date of estimate expressed in YYYY-MM-DD format. For more details, visit [Online Assistant Page #16598](https://oa.apps.factset.com/pages/16598)
* @return estimateDate
**/
@jakarta.annotation.Nullable
@ApiModelProperty(example = "Mon Jul 24 00:00:00 UTC 2017", value = "Date of estimate expressed in YYYY-MM-DD format. For more details, visit [Online Assistant Page #16598](https://oa.apps.factset.com/pages/16598)")
@JsonIgnore
public LocalDate getEstimateDate() {
return estimateDate.orElse(null);
}
@JsonProperty(JSON_PROPERTY_ESTIMATE_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getEstimateDate_JsonNullable() {
return estimateDate;
}
@JsonProperty(JSON_PROPERTY_ESTIMATE_DATE)
public void setEstimateDate_JsonNullable(JsonNullable estimateDate) {
this.estimateDate = estimateDate;
}
public void setEstimateDate(LocalDate estimateDate) {
this.estimateDate = JsonNullable.of(estimateDate);
}
public ConsensusEstimate currency(String currency) {
this.currency = JsonNullable.of(currency);
return this;
}
/**
* Currency code for adjusting the data. Use 'ESTIMATE' as input value for the values in Estimate Currency. For a list of currency ISO codes, visit [Online Assistant Page #1470](https://oa.apps.factset.com/pages/1470).
* @return currency
**/
@jakarta.annotation.Nullable
@ApiModelProperty(example = "USD", value = "Currency code for adjusting the data. Use 'ESTIMATE' as input value for the values in Estimate Currency. For a list of currency ISO codes, visit [Online Assistant Page #1470](https://oa.apps.factset.com/pages/1470).")
@JsonIgnore
public String getCurrency() {
return currency.orElse(null);
}
@JsonProperty(JSON_PROPERTY_CURRENCY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getCurrency_JsonNullable() {
return currency;
}
@JsonProperty(JSON_PROPERTY_CURRENCY)
public void setCurrency_JsonNullable(JsonNullable currency) {
this.currency = currency;
}
public void setCurrency(String currency) {
this.currency = JsonNullable.of(currency);
}
public ConsensusEstimate estimateCurrency(String estimateCurrency) {
this.estimateCurrency = JsonNullable.of(estimateCurrency);
return this;
}
/**
* Estimate currency of the requested Security
* @return estimateCurrency
**/
@jakarta.annotation.Nullable
@ApiModelProperty(example = "USD", value = "Estimate currency of the requested Security")
@JsonIgnore
public String getEstimateCurrency() {
return estimateCurrency.orElse(null);
}
@JsonProperty(JSON_PROPERTY_ESTIMATE_CURRENCY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getEstimateCurrency_JsonNullable() {
return estimateCurrency;
}
@JsonProperty(JSON_PROPERTY_ESTIMATE_CURRENCY)
public void setEstimateCurrency_JsonNullable(JsonNullable estimateCurrency) {
this.estimateCurrency = estimateCurrency;
}
public void setEstimateCurrency(String estimateCurrency) {
this.estimateCurrency = JsonNullable.of(estimateCurrency);
}
public ConsensusEstimate mean(Double mean) {
this.mean = JsonNullable.of(mean);
return this;
}
/**
* Mean of estimates in consensus calculation. For more details, visit [Online Assistant Page #16598](https://oa.apps.factset.com/pages/16114)
* @return mean
**/
@jakarta.annotation.Nullable
@ApiModelProperty(example = "12345.01", value = "Mean of estimates in consensus calculation. For more details, visit [Online Assistant Page #16598](https://oa.apps.factset.com/pages/16114)")
@JsonIgnore
public Double getMean() {
return mean.orElse(null);
}
@JsonProperty(JSON_PROPERTY_MEAN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getMean_JsonNullable() {
return mean;
}
@JsonProperty(JSON_PROPERTY_MEAN)
public void setMean_JsonNullable(JsonNullable mean) {
this.mean = mean;
}
public void setMean(Double mean) {
this.mean = JsonNullable.of(mean);
}
public ConsensusEstimate median(Double median) {
this.median = JsonNullable.of(median);
return this;
}
/**
* Median of estimates in consensus calculation. For more details, visit [Online Assistant Page #16598](https://oa.apps.factset.com/pages/16114)
* @return median
**/
@jakarta.annotation.Nullable
@ApiModelProperty(example = "12346.01", value = "Median of estimates in consensus calculation. For more details, visit [Online Assistant Page #16598](https://oa.apps.factset.com/pages/16114)")
@JsonIgnore
public Double getMedian() {
return median.orElse(null);
}
@JsonProperty(JSON_PROPERTY_MEDIAN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getMedian_JsonNullable() {
return median;
}
@JsonProperty(JSON_PROPERTY_MEDIAN)
public void setMedian_JsonNullable(JsonNullable median) {
this.median = median;
}
public void setMedian(Double median) {
this.median = JsonNullable.of(median);
}
public ConsensusEstimate standardDeviation(Double standardDeviation) {
this.standardDeviation = JsonNullable.of(standardDeviation);
return this;
}
/**
* Standard deviation of estimates in consensus calculation. For more details, visit [Online Assistant Page #16598](https://oa.apps.factset.com/pages/16114)
* @return standardDeviation
**/
@jakarta.annotation.Nullable
@ApiModelProperty(example = "0.011034", value = "Standard deviation of estimates in consensus calculation. For more details, visit [Online Assistant Page #16598](https://oa.apps.factset.com/pages/16114)")
@JsonIgnore
public Double getStandardDeviation() {
return standardDeviation.orElse(null);
}
@JsonProperty(JSON_PROPERTY_STANDARD_DEVIATION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getStandardDeviation_JsonNullable() {
return standardDeviation;
}
@JsonProperty(JSON_PROPERTY_STANDARD_DEVIATION)
public void setStandardDeviation_JsonNullable(JsonNullable standardDeviation) {
this.standardDeviation = standardDeviation;
}
public void setStandardDeviation(Double standardDeviation) {
this.standardDeviation = JsonNullable.of(standardDeviation);
}
public ConsensusEstimate high(Double high) {
this.high = JsonNullable.of(high);
return this;
}
/**
* Highest estimate in consensus calculation. For more details, visit [Online Assistant Page #16598](https://oa.apps.factset.com/pages/16114).
* @return high
**/
@jakarta.annotation.Nullable
@ApiModelProperty(example = "12349.01", value = "Highest estimate in consensus calculation. For more details, visit [Online Assistant Page #16598](https://oa.apps.factset.com/pages/16114).")
@JsonIgnore
public Double getHigh() {
return high.orElse(null);
}
@JsonProperty(JSON_PROPERTY_HIGH)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getHigh_JsonNullable() {
return high;
}
@JsonProperty(JSON_PROPERTY_HIGH)
public void setHigh_JsonNullable(JsonNullable high) {
this.high = high;
}
public void setHigh(Double high) {
this.high = JsonNullable.of(high);
}
public ConsensusEstimate low(Double low) {
this.low = JsonNullable.of(low);
return this;
}
/**
* Lowest estimate in consensus calculation. For more details, visit [Online Assistant Page #16598](https://oa.apps.factset.com/pages/16114)
* @return low
**/
@jakarta.annotation.Nullable
@ApiModelProperty(example = "12344.01", value = "Lowest estimate in consensus calculation. For more details, visit [Online Assistant Page #16598](https://oa.apps.factset.com/pages/16114)")
@JsonIgnore
public Double getLow() {
return low.orElse(null);
}
@JsonProperty(JSON_PROPERTY_LOW)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getLow_JsonNullable() {
return low;
}
@JsonProperty(JSON_PROPERTY_LOW)
public void setLow_JsonNullable(JsonNullable low) {
this.low = low;
}
public void setLow(Double low) {
this.low = JsonNullable.of(low);
}
public ConsensusEstimate estimateCount(Integer estimateCount) {
this.estimateCount = JsonNullable.of(estimateCount);
return this;
}
/**
* Count or NEST of estimates in consensus calculation. For more details, visit [Online Assistant Page #16598](https://oa.apps.factset.com/pages/16114)
* @return estimateCount
**/
@jakarta.annotation.Nullable
@ApiModelProperty(example = "20", value = "Count or NEST of estimates in consensus calculation. For more details, visit [Online Assistant Page #16598](https://oa.apps.factset.com/pages/16114)")
@JsonIgnore
public Integer getEstimateCount() {
return estimateCount.orElse(null);
}
@JsonProperty(JSON_PROPERTY_ESTIMATE_COUNT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getEstimateCount_JsonNullable() {
return estimateCount;
}
@JsonProperty(JSON_PROPERTY_ESTIMATE_COUNT)
public void setEstimateCount_JsonNullable(JsonNullable estimateCount) {
this.estimateCount = estimateCount;
}
public void setEstimateCount(Integer estimateCount) {
this.estimateCount = JsonNullable.of(estimateCount);
}
public ConsensusEstimate up(Integer up) {
this.up = JsonNullable.of(up);
return this;
}
/**
* Number of Up Revisions within the consensus for the metric and period. The default window size is 100 days For more details, visit [Online Assistant Page #16598](https://oa.apps.factset.com/pages/16114).
* @return up
**/
@jakarta.annotation.Nullable
@ApiModelProperty(example = "6", value = "Number of Up Revisions within the consensus for the metric and period. The default window size is 100 days For more details, visit [Online Assistant Page #16598](https://oa.apps.factset.com/pages/16114).")
@JsonIgnore
public Integer getUp() {
return up.orElse(null);
}
@JsonProperty(JSON_PROPERTY_UP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getUp_JsonNullable() {
return up;
}
@JsonProperty(JSON_PROPERTY_UP)
public void setUp_JsonNullable(JsonNullable up) {
this.up = up;
}
public void setUp(Integer up) {
this.up = JsonNullable.of(up);
}
public ConsensusEstimate down(Integer down) {
this.down = JsonNullable.of(down);
return this;
}
/**
* Number of Up Revisions within the consensus for the metric and period. The default window size is 100 days. For more details, visit [Online Assistant Page #16598](https://oa.apps.factset.com/pages/16114).
* @return down
**/
@jakarta.annotation.Nullable
@ApiModelProperty(example = "4", value = "Number of Up Revisions within the consensus for the metric and period. The default window size is 100 days. For more details, visit [Online Assistant Page #16598](https://oa.apps.factset.com/pages/16114).")
@JsonIgnore
public Integer getDown() {
return down.orElse(null);
}
@JsonProperty(JSON_PROPERTY_DOWN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getDown_JsonNullable() {
return down;
}
@JsonProperty(JSON_PROPERTY_DOWN)
public void setDown_JsonNullable(JsonNullable down) {
this.down = down;
}
public void setDown(Integer down) {
this.down = JsonNullable.of(down);
}
/**
* Return true if this consensusEstimate object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ConsensusEstimate consensusEstimate = (ConsensusEstimate) o;
return Objects.equals(this.requestId, consensusEstimate.requestId) &&
equalsNullable(this.fsymId, consensusEstimate.fsymId) &&
equalsNullable(this.metric, consensusEstimate.metric) &&
equalsNullable(this.periodicity, consensusEstimate.periodicity) &&
equalsNullable(this.fiscalPeriod, consensusEstimate.fiscalPeriod) &&
equalsNullable(this.fiscalYear, consensusEstimate.fiscalYear) &&
equalsNullable(this.fiscalEndDate, consensusEstimate.fiscalEndDate) &&
equalsNullable(this.relativePeriod, consensusEstimate.relativePeriod) &&
equalsNullable(this.estimateDate, consensusEstimate.estimateDate) &&
equalsNullable(this.currency, consensusEstimate.currency) &&
equalsNullable(this.estimateCurrency, consensusEstimate.estimateCurrency) &&
equalsNullable(this.mean, consensusEstimate.mean) &&
equalsNullable(this.median, consensusEstimate.median) &&
equalsNullable(this.standardDeviation, consensusEstimate.standardDeviation) &&
equalsNullable(this.high, consensusEstimate.high) &&
equalsNullable(this.low, consensusEstimate.low) &&
equalsNullable(this.estimateCount, consensusEstimate.estimateCount) &&
equalsNullable(this.up, consensusEstimate.up) &&
equalsNullable(this.down, consensusEstimate.down);
}
private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
}
@Override
public int hashCode() {
return Objects.hash(requestId, hashCodeNullable(fsymId), hashCodeNullable(metric), hashCodeNullable(periodicity), hashCodeNullable(fiscalPeriod), hashCodeNullable(fiscalYear), hashCodeNullable(fiscalEndDate), hashCodeNullable(relativePeriod), hashCodeNullable(estimateDate), hashCodeNullable(currency), hashCodeNullable(estimateCurrency), hashCodeNullable(mean), hashCodeNullable(median), hashCodeNullable(standardDeviation), hashCodeNullable(high), hashCodeNullable(low), hashCodeNullable(estimateCount), hashCodeNullable(up), hashCodeNullable(down));
}
private static int hashCodeNullable(JsonNullable a) {
if (a == null) {
return 1;
}
return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ConsensusEstimate {\n");
sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n");
sb.append(" fsymId: ").append(toIndentedString(fsymId)).append("\n");
sb.append(" metric: ").append(toIndentedString(metric)).append("\n");
sb.append(" periodicity: ").append(toIndentedString(periodicity)).append("\n");
sb.append(" fiscalPeriod: ").append(toIndentedString(fiscalPeriod)).append("\n");
sb.append(" fiscalYear: ").append(toIndentedString(fiscalYear)).append("\n");
sb.append(" fiscalEndDate: ").append(toIndentedString(fiscalEndDate)).append("\n");
sb.append(" relativePeriod: ").append(toIndentedString(relativePeriod)).append("\n");
sb.append(" estimateDate: ").append(toIndentedString(estimateDate)).append("\n");
sb.append(" currency: ").append(toIndentedString(currency)).append("\n");
sb.append(" estimateCurrency: ").append(toIndentedString(estimateCurrency)).append("\n");
sb.append(" mean: ").append(toIndentedString(mean)).append("\n");
sb.append(" median: ").append(toIndentedString(median)).append("\n");
sb.append(" standardDeviation: ").append(toIndentedString(standardDeviation)).append("\n");
sb.append(" high: ").append(toIndentedString(high)).append("\n");
sb.append(" low: ").append(toIndentedString(low)).append("\n");
sb.append(" estimateCount: ").append(toIndentedString(estimateCount)).append("\n");
sb.append(" up: ").append(toIndentedString(up)).append("\n");
sb.append(" down: ").append(toIndentedString(down)).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 ");
}
}