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

com.factset.sdk.OpenRisk.models.StatResultValueSparseMatrix Maven / Gradle / Ivy

There is a newer version: 5.0.2
Show newest version
/*
 * Open:Risk API
 * Service to calculate parametric linear risk statistics and generate risk model asset identifier mappings.
 *
 * The version of the OpenAPI document: 1.26.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.OpenRisk.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.io.Serializable;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.factset.sdk.OpenRisk.JSON;


/**
 * Output representation for compressed sparse row matrix.
 */
@ApiModel(description = "Output representation for compressed sparse row matrix.")
@JsonPropertyOrder({
  StatResultValueSparseMatrix.JSON_PROPERTY_ROWS,
  StatResultValueSparseMatrix.JSON_PROPERTY_COLUMNS,
  StatResultValueSparseMatrix.JSON_PROPERTY_INDEX_POINTER,
  StatResultValueSparseMatrix.JSON_PROPERTY_INDICES,
  StatResultValueSparseMatrix.JSON_PROPERTY_VALUE
})
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")

public class StatResultValueSparseMatrix implements Serializable {
  private static final long serialVersionUID = 1L;

  public static final String JSON_PROPERTY_ROWS = "rows";
  private Integer rows;

  public static final String JSON_PROPERTY_COLUMNS = "columns";
  private Integer columns;

  public static final String JSON_PROPERTY_INDEX_POINTER = "indexPointer";
  private java.util.List indexPointer = null;

  public static final String JSON_PROPERTY_INDICES = "indices";
  private java.util.List indices = null;

  public static final String JSON_PROPERTY_VALUE = "value";
  private java.util.List value = null;

  public StatResultValueSparseMatrix() { 
  }

  public StatResultValueSparseMatrix rows(Integer rows) {
    this.rows = rows;
    return this;
  }

   /**
   * Number of rows in the matrix
   * minimum: 1
   * @return rows
  **/
  @jakarta.annotation.Nullable
  @ApiModelProperty(value = "Number of rows in the matrix")
  @JsonProperty(JSON_PROPERTY_ROWS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Integer getRows() {
    return rows;
  }


  @JsonProperty(JSON_PROPERTY_ROWS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setRows(Integer rows) {
    this.rows = rows;
  }


  public StatResultValueSparseMatrix columns(Integer columns) {
    this.columns = columns;
    return this;
  }

   /**
   * Number of columns in the matrix
   * minimum: 1
   * @return columns
  **/
  @jakarta.annotation.Nullable
  @ApiModelProperty(value = "Number of columns in the matrix")
  @JsonProperty(JSON_PROPERTY_COLUMNS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Integer getColumns() {
    return columns;
  }


  @JsonProperty(JSON_PROPERTY_COLUMNS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setColumns(Integer columns) {
    this.columns = columns;
  }


  public StatResultValueSparseMatrix indexPointer(java.util.List indexPointer) {
    this.indexPointer = indexPointer;
    return this;
  }

  public StatResultValueSparseMatrix addIndexPointerItem(Integer indexPointerItem) {
    if (this.indexPointer == null) {
      this.indexPointer = new java.util.ArrayList<>();
    }
    this.indexPointer.add(indexPointerItem);
    return this;
  }

   /**
   * Array of 0-based index pointers for the compressed sparse row representation
   * @return indexPointer
  **/
  @jakarta.annotation.Nullable
  @ApiModelProperty(value = "Array of 0-based index pointers for the compressed sparse row representation")
  @JsonProperty(JSON_PROPERTY_INDEX_POINTER)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public java.util.List getIndexPointer() {
    return indexPointer;
  }


  @JsonProperty(JSON_PROPERTY_INDEX_POINTER)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setIndexPointer(java.util.List indexPointer) {
    this.indexPointer = indexPointer;
  }


  public StatResultValueSparseMatrix indices(java.util.List indices) {
    this.indices = indices;
    return this;
  }

  public StatResultValueSparseMatrix addIndicesItem(Integer indicesItem) {
    if (this.indices == null) {
      this.indices = new java.util.ArrayList<>();
    }
    this.indices.add(indicesItem);
    return this;
  }

   /**
   * Array of 0-based indices for the compressed sparse row representation
   * @return indices
  **/
  @jakarta.annotation.Nullable
  @ApiModelProperty(value = "Array of 0-based indices for the compressed sparse row representation")
  @JsonProperty(JSON_PROPERTY_INDICES)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public java.util.List getIndices() {
    return indices;
  }


  @JsonProperty(JSON_PROPERTY_INDICES)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setIndices(java.util.List indices) {
    this.indices = indices;
  }


  public StatResultValueSparseMatrix value(java.util.List value) {
    this.value = value;
    return this;
  }

  public StatResultValueSparseMatrix addValueItem(Double valueItem) {
    if (this.value == null) {
      this.value = new java.util.ArrayList<>();
    }
    this.value.add(valueItem);
    return this;
  }

   /**
   * Array of floating point values
   * @return value
  **/
  @jakarta.annotation.Nullable
  @ApiModelProperty(value = "Array of floating point values")
  @JsonProperty(JSON_PROPERTY_VALUE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public java.util.List getValue() {
    return value;
  }


  @JsonProperty(JSON_PROPERTY_VALUE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setValue(java.util.List value) {
    this.value = value;
  }


  /**
   * Return true if this StatResultValueSparseMatrix object is equal to o.
   */
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    StatResultValueSparseMatrix statResultValueSparseMatrix = (StatResultValueSparseMatrix) o;
    return Objects.equals(this.rows, statResultValueSparseMatrix.rows) &&
        Objects.equals(this.columns, statResultValueSparseMatrix.columns) &&
        Objects.equals(this.indexPointer, statResultValueSparseMatrix.indexPointer) &&
        Objects.equals(this.indices, statResultValueSparseMatrix.indices) &&
        Objects.equals(this.value, statResultValueSparseMatrix.value);
  }

  @Override
  public int hashCode() {
    return Objects.hash(rows, columns, indexPointer, indices, value);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class StatResultValueSparseMatrix {\n");
    sb.append("    rows: ").append(toIndentedString(rows)).append("\n");
    sb.append("    columns: ").append(toIndentedString(columns)).append("\n");
    sb.append("    indexPointer: ").append(toIndentedString(indexPointer)).append("\n");
    sb.append("    indices: ").append(toIndentedString(indices)).append("\n");
    sb.append("    value: ").append(toIndentedString(value)).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 - 2024 Weber Informatics LLC | Privacy Policy