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

openapitools.model.PrimitiveArraysObject Maven / Gradle / Ivy

The newest version!
/*
 * Product Base Definitions
 * This component represents the Open API interface of the accounting service. 
 *
 * The version of the OpenAPI document: 0.0.1
 * 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 openapitools.model;

import java.util.Objects;
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 java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.openapitools.jackson.nullable.JsonNullable;
import com.fasterxml.jackson.annotation.JsonIgnore;
import org.openapitools.jackson.nullable.JsonNullable;
import java.util.NoSuchElementException;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import openapitools.JSON;


/**
 * PrimitiveArraysObject
 */
@JsonPropertyOrder({
  PrimitiveArraysObject.JSON_PROPERTY_A_BOOLEAN_ARRAY,
  PrimitiveArraysObject.JSON_PROPERTY_B_BOOLEAN_ARRAY,
  PrimitiveArraysObject.JSON_PROPERTY_C_BOOLEAN_ARRAY,
  PrimitiveArraysObject.JSON_PROPERTY_A_BYTE_ARRAY,
  PrimitiveArraysObject.JSON_PROPERTY_B_BYTE_ARRAY,
  PrimitiveArraysObject.JSON_PROPERTY_A_SHORT_ARRAY,
  PrimitiveArraysObject.JSON_PROPERTY_B_SHORT_ARRAY,
  PrimitiveArraysObject.JSON_PROPERTY_A_INTEGER_ARRAY,
  PrimitiveArraysObject.JSON_PROPERTY_B_INTEGER_ARRAY,
  PrimitiveArraysObject.JSON_PROPERTY_C_INTEGER_ARRAY,
  PrimitiveArraysObject.JSON_PROPERTY_A_LONG_ARRAY,
  PrimitiveArraysObject.JSON_PROPERTY_B_LONG_ARRAY,
  PrimitiveArraysObject.JSON_PROPERTY_A_BIG_INTEGER_ARRAY,
  PrimitiveArraysObject.JSON_PROPERTY_A_CHARACTER_ARRAY,
  PrimitiveArraysObject.JSON_PROPERTY_B_CHARACTER_ARRAY,
  PrimitiveArraysObject.JSON_PROPERTY_A_FLOAT_ARRAY,
  PrimitiveArraysObject.JSON_PROPERTY_B_FLOAT_ARRAY,
  PrimitiveArraysObject.JSON_PROPERTY_A_DOUBLE_ARRAY,
  PrimitiveArraysObject.JSON_PROPERTY_B_DOUBLE_ARRAY,
  PrimitiveArraysObject.JSON_PROPERTY_A_BIG_DECIMAL_ARRAY,
  PrimitiveArraysObject.JSON_PROPERTY_A_STRING_ARRAY,
  PrimitiveArraysObject.JSON_PROPERTY_B_STRING_ARRAY,
  PrimitiveArraysObject.JSON_PROPERTY_C_STRING_ARRAY
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0")
public class PrimitiveArraysObject {
  public static final String JSON_PROPERTY_A_BOOLEAN_ARRAY = "aBooleanArray";
  private JsonNullable> aBooleanArray = JsonNullable.>undefined();

  public static final String JSON_PROPERTY_B_BOOLEAN_ARRAY = "bBooleanArray";
  private JsonNullable> bBooleanArray = JsonNullable.>undefined();

  public static final String JSON_PROPERTY_C_BOOLEAN_ARRAY = "cBooleanArray";
  private JsonNullable> cBooleanArray = JsonNullable.>undefined();

  public static final String JSON_PROPERTY_A_BYTE_ARRAY = "aByteArray";
  private JsonNullable aByteArray = JsonNullable.undefined();

  public static final String JSON_PROPERTY_B_BYTE_ARRAY = "bByteArray";
  private JsonNullable bByteArray = JsonNullable.undefined();

  public static final String JSON_PROPERTY_A_SHORT_ARRAY = "aShortArray";
  private JsonNullable> aShortArray = JsonNullable.>undefined();

  public static final String JSON_PROPERTY_B_SHORT_ARRAY = "bShortArray";
  private JsonNullable> bShortArray = JsonNullable.>undefined();

  public static final String JSON_PROPERTY_A_INTEGER_ARRAY = "aIntegerArray";
  private JsonNullable> aIntegerArray = JsonNullable.>undefined();

  public static final String JSON_PROPERTY_B_INTEGER_ARRAY = "bIntegerArray";
  private JsonNullable> bIntegerArray = JsonNullable.>undefined();

  public static final String JSON_PROPERTY_C_INTEGER_ARRAY = "cIntegerArray";
  private JsonNullable> cIntegerArray = JsonNullable.>undefined();

  public static final String JSON_PROPERTY_A_LONG_ARRAY = "aLongArray";
  private JsonNullable> aLongArray = JsonNullable.>undefined();

  public static final String JSON_PROPERTY_B_LONG_ARRAY = "bLongArray";
  private JsonNullable> bLongArray = JsonNullable.>undefined();

  public static final String JSON_PROPERTY_A_BIG_INTEGER_ARRAY = "aBigIntegerArray";
  private JsonNullable> aBigIntegerArray = JsonNullable.>undefined();

  public static final String JSON_PROPERTY_A_CHARACTER_ARRAY = "aCharacterArray";
  private JsonNullable> aCharacterArray = JsonNullable.>undefined();

  public static final String JSON_PROPERTY_B_CHARACTER_ARRAY = "bCharacterArray";
  private JsonNullable> bCharacterArray = JsonNullable.>undefined();

  public static final String JSON_PROPERTY_A_FLOAT_ARRAY = "aFloatArray";
  private JsonNullable> aFloatArray = JsonNullable.>undefined();

  public static final String JSON_PROPERTY_B_FLOAT_ARRAY = "bFloatArray";
  private JsonNullable> bFloatArray = JsonNullable.>undefined();

  public static final String JSON_PROPERTY_A_DOUBLE_ARRAY = "aDoubleArray";
  private JsonNullable> aDoubleArray = JsonNullable.>undefined();

  public static final String JSON_PROPERTY_B_DOUBLE_ARRAY = "bDoubleArray";
  private JsonNullable> bDoubleArray = JsonNullable.>undefined();

  public static final String JSON_PROPERTY_A_BIG_DECIMAL_ARRAY = "aBigDecimalArray";
  private JsonNullable> aBigDecimalArray = JsonNullable.>undefined();

  public static final String JSON_PROPERTY_A_STRING_ARRAY = "aStringArray";
  private JsonNullable> aStringArray = JsonNullable.>undefined();

  public static final String JSON_PROPERTY_B_STRING_ARRAY = "bStringArray";
  private JsonNullable> bStringArray = JsonNullable.>undefined();

  public static final String JSON_PROPERTY_C_STRING_ARRAY = "cStringArray";
  private List cStringArray = new ArrayList<>();

  public PrimitiveArraysObject() { 
  }

  public PrimitiveArraysObject aBooleanArray(List aBooleanArray) {
    this.aBooleanArray = JsonNullable.>of(aBooleanArray);
    return this;
  }

  public PrimitiveArraysObject addABooleanArrayItem(Boolean aBooleanArrayItem) {
    if (this.aBooleanArray == null || !this.aBooleanArray.isPresent()) {
      this.aBooleanArray = JsonNullable.>of(new ArrayList<>());
    }
    try {
      this.aBooleanArray.get().add(aBooleanArrayItem);
    } catch (java.util.NoSuchElementException e) {
      // this can never happen, as we make sure above that the value is present
    }
    return this;
  }

  /**
   * Get aBooleanArray
   * @return aBooleanArray
   */
  @javax.annotation.Nullable
  @JsonIgnore

  public List getaBooleanArray() {
        return aBooleanArray.orElse(null);
  }

  @JsonProperty(JSON_PROPERTY_A_BOOLEAN_ARRAY)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public JsonNullable> getaBooleanArray_JsonNullable() {
    return aBooleanArray;
  }
  
  @JsonProperty(JSON_PROPERTY_A_BOOLEAN_ARRAY)
  public void setaBooleanArray_JsonNullable(JsonNullable> aBooleanArray) {
    this.aBooleanArray = aBooleanArray;
  }

  public void setaBooleanArray(List aBooleanArray) {
    this.aBooleanArray = JsonNullable.>of(aBooleanArray);
  }


  public PrimitiveArraysObject bBooleanArray(List bBooleanArray) {
    this.bBooleanArray = JsonNullable.>of(bBooleanArray);
    return this;
  }

  public PrimitiveArraysObject addBBooleanArrayItem(Boolean bBooleanArrayItem) {
    if (this.bBooleanArray == null || !this.bBooleanArray.isPresent()) {
      this.bBooleanArray = JsonNullable.>of(new ArrayList<>());
    }
    try {
      this.bBooleanArray.get().add(bBooleanArrayItem);
    } catch (java.util.NoSuchElementException e) {
      // this can never happen, as we make sure above that the value is present
    }
    return this;
  }

  /**
   * Get bBooleanArray
   * @return bBooleanArray
   */
  @javax.annotation.Nullable
  @JsonIgnore

  public List getbBooleanArray() {
        return bBooleanArray.orElse(null);
  }

  @JsonProperty(JSON_PROPERTY_B_BOOLEAN_ARRAY)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public JsonNullable> getbBooleanArray_JsonNullable() {
    return bBooleanArray;
  }
  
  @JsonProperty(JSON_PROPERTY_B_BOOLEAN_ARRAY)
  public void setbBooleanArray_JsonNullable(JsonNullable> bBooleanArray) {
    this.bBooleanArray = bBooleanArray;
  }

  public void setbBooleanArray(List bBooleanArray) {
    this.bBooleanArray = JsonNullable.>of(bBooleanArray);
  }


  public PrimitiveArraysObject cBooleanArray(List cBooleanArray) {
    this.cBooleanArray = JsonNullable.>of(cBooleanArray);
    return this;
  }

  public PrimitiveArraysObject addCBooleanArrayItem(Boolean cBooleanArrayItem) {
    if (this.cBooleanArray == null || !this.cBooleanArray.isPresent()) {
      this.cBooleanArray = JsonNullable.>of(new ArrayList<>());
    }
    try {
      this.cBooleanArray.get().add(cBooleanArrayItem);
    } catch (java.util.NoSuchElementException e) {
      // this can never happen, as we make sure above that the value is present
    }
    return this;
  }

  /**
   * Get cBooleanArray
   * @return cBooleanArray
   */
  @javax.annotation.Nullable
  @JsonIgnore

  public List getcBooleanArray() {
        return cBooleanArray.orElse(null);
  }

  @JsonProperty(JSON_PROPERTY_C_BOOLEAN_ARRAY)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public JsonNullable> getcBooleanArray_JsonNullable() {
    return cBooleanArray;
  }
  
  @JsonProperty(JSON_PROPERTY_C_BOOLEAN_ARRAY)
  public void setcBooleanArray_JsonNullable(JsonNullable> cBooleanArray) {
    this.cBooleanArray = cBooleanArray;
  }

  public void setcBooleanArray(List cBooleanArray) {
    this.cBooleanArray = JsonNullable.>of(cBooleanArray);
  }


  public PrimitiveArraysObject aByteArray(byte[] aByteArray) {
    this.aByteArray = JsonNullable.of(aByteArray);
    return this;
  }

  /**
   * Get aByteArray
   * @return aByteArray
   */
  @javax.annotation.Nullable
  @JsonIgnore

  public byte[] getaByteArray() {
        return aByteArray.orElse(null);
  }

  @JsonProperty(JSON_PROPERTY_A_BYTE_ARRAY)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public JsonNullable getaByteArray_JsonNullable() {
    return aByteArray;
  }
  
  @JsonProperty(JSON_PROPERTY_A_BYTE_ARRAY)
  public void setaByteArray_JsonNullable(JsonNullable aByteArray) {
    this.aByteArray = aByteArray;
  }

  public void setaByteArray(byte[] aByteArray) {
    this.aByteArray = JsonNullable.of(aByteArray);
  }


  public PrimitiveArraysObject bByteArray(byte[] bByteArray) {
    this.bByteArray = JsonNullable.of(bByteArray);
    return this;
  }

  /**
   * Get bByteArray
   * @return bByteArray
   */
  @javax.annotation.Nullable
  @JsonIgnore

  public byte[] getbByteArray() {
        return bByteArray.orElse(null);
  }

  @JsonProperty(JSON_PROPERTY_B_BYTE_ARRAY)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public JsonNullable getbByteArray_JsonNullable() {
    return bByteArray;
  }
  
  @JsonProperty(JSON_PROPERTY_B_BYTE_ARRAY)
  public void setbByteArray_JsonNullable(JsonNullable bByteArray) {
    this.bByteArray = bByteArray;
  }

  public void setbByteArray(byte[] bByteArray) {
    this.bByteArray = JsonNullable.of(bByteArray);
  }


  public PrimitiveArraysObject aShortArray(List aShortArray) {
    this.aShortArray = JsonNullable.>of(aShortArray);
    return this;
  }

  public PrimitiveArraysObject addAShortArrayItem(Integer aShortArrayItem) {
    if (this.aShortArray == null || !this.aShortArray.isPresent()) {
      this.aShortArray = JsonNullable.>of(new ArrayList<>());
    }
    try {
      this.aShortArray.get().add(aShortArrayItem);
    } catch (java.util.NoSuchElementException e) {
      // this can never happen, as we make sure above that the value is present
    }
    return this;
  }

  /**
   * Get aShortArray
   * @return aShortArray
   */
  @javax.annotation.Nullable
  @JsonIgnore

  public List getaShortArray() {
        return aShortArray.orElse(null);
  }

  @JsonProperty(JSON_PROPERTY_A_SHORT_ARRAY)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public JsonNullable> getaShortArray_JsonNullable() {
    return aShortArray;
  }
  
  @JsonProperty(JSON_PROPERTY_A_SHORT_ARRAY)
  public void setaShortArray_JsonNullable(JsonNullable> aShortArray) {
    this.aShortArray = aShortArray;
  }

  public void setaShortArray(List aShortArray) {
    this.aShortArray = JsonNullable.>of(aShortArray);
  }


  public PrimitiveArraysObject bShortArray(List bShortArray) {
    this.bShortArray = JsonNullable.>of(bShortArray);
    return this;
  }

  public PrimitiveArraysObject addBShortArrayItem(Integer bShortArrayItem) {
    if (this.bShortArray == null || !this.bShortArray.isPresent()) {
      this.bShortArray = JsonNullable.>of(new ArrayList<>());
    }
    try {
      this.bShortArray.get().add(bShortArrayItem);
    } catch (java.util.NoSuchElementException e) {
      // this can never happen, as we make sure above that the value is present
    }
    return this;
  }

  /**
   * Get bShortArray
   * @return bShortArray
   */
  @javax.annotation.Nullable
  @JsonIgnore

  public List getbShortArray() {
        return bShortArray.orElse(null);
  }

  @JsonProperty(JSON_PROPERTY_B_SHORT_ARRAY)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public JsonNullable> getbShortArray_JsonNullable() {
    return bShortArray;
  }
  
  @JsonProperty(JSON_PROPERTY_B_SHORT_ARRAY)
  public void setbShortArray_JsonNullable(JsonNullable> bShortArray) {
    this.bShortArray = bShortArray;
  }

  public void setbShortArray(List bShortArray) {
    this.bShortArray = JsonNullable.>of(bShortArray);
  }


  public PrimitiveArraysObject aIntegerArray(List aIntegerArray) {
    this.aIntegerArray = JsonNullable.>of(aIntegerArray);
    return this;
  }

  public PrimitiveArraysObject addAIntegerArrayItem(Integer aIntegerArrayItem) {
    if (this.aIntegerArray == null || !this.aIntegerArray.isPresent()) {
      this.aIntegerArray = JsonNullable.>of(new ArrayList<>());
    }
    try {
      this.aIntegerArray.get().add(aIntegerArrayItem);
    } catch (java.util.NoSuchElementException e) {
      // this can never happen, as we make sure above that the value is present
    }
    return this;
  }

  /**
   * Get aIntegerArray
   * @return aIntegerArray
   */
  @javax.annotation.Nullable
  @JsonIgnore

  public List getaIntegerArray() {
        return aIntegerArray.orElse(null);
  }

  @JsonProperty(JSON_PROPERTY_A_INTEGER_ARRAY)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public JsonNullable> getaIntegerArray_JsonNullable() {
    return aIntegerArray;
  }
  
  @JsonProperty(JSON_PROPERTY_A_INTEGER_ARRAY)
  public void setaIntegerArray_JsonNullable(JsonNullable> aIntegerArray) {
    this.aIntegerArray = aIntegerArray;
  }

  public void setaIntegerArray(List aIntegerArray) {
    this.aIntegerArray = JsonNullable.>of(aIntegerArray);
  }


  public PrimitiveArraysObject bIntegerArray(List bIntegerArray) {
    this.bIntegerArray = JsonNullable.>of(bIntegerArray);
    return this;
  }

  public PrimitiveArraysObject addBIntegerArrayItem(Integer bIntegerArrayItem) {
    if (this.bIntegerArray == null || !this.bIntegerArray.isPresent()) {
      this.bIntegerArray = JsonNullable.>of(new ArrayList<>());
    }
    try {
      this.bIntegerArray.get().add(bIntegerArrayItem);
    } catch (java.util.NoSuchElementException e) {
      // this can never happen, as we make sure above that the value is present
    }
    return this;
  }

  /**
   * Get bIntegerArray
   * @return bIntegerArray
   */
  @javax.annotation.Nullable
  @JsonIgnore

  public List getbIntegerArray() {
        return bIntegerArray.orElse(null);
  }

  @JsonProperty(JSON_PROPERTY_B_INTEGER_ARRAY)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public JsonNullable> getbIntegerArray_JsonNullable() {
    return bIntegerArray;
  }
  
  @JsonProperty(JSON_PROPERTY_B_INTEGER_ARRAY)
  public void setbIntegerArray_JsonNullable(JsonNullable> bIntegerArray) {
    this.bIntegerArray = bIntegerArray;
  }

  public void setbIntegerArray(List bIntegerArray) {
    this.bIntegerArray = JsonNullable.>of(bIntegerArray);
  }


  public PrimitiveArraysObject cIntegerArray(List cIntegerArray) {
    this.cIntegerArray = JsonNullable.>of(cIntegerArray);
    return this;
  }

  public PrimitiveArraysObject addCIntegerArrayItem(Integer cIntegerArrayItem) {
    if (this.cIntegerArray == null || !this.cIntegerArray.isPresent()) {
      this.cIntegerArray = JsonNullable.>of(new ArrayList<>());
    }
    try {
      this.cIntegerArray.get().add(cIntegerArrayItem);
    } catch (java.util.NoSuchElementException e) {
      // this can never happen, as we make sure above that the value is present
    }
    return this;
  }

  /**
   * Get cIntegerArray
   * @return cIntegerArray
   */
  @javax.annotation.Nullable
  @JsonIgnore

  public List getcIntegerArray() {
        return cIntegerArray.orElse(null);
  }

  @JsonProperty(JSON_PROPERTY_C_INTEGER_ARRAY)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public JsonNullable> getcIntegerArray_JsonNullable() {
    return cIntegerArray;
  }
  
  @JsonProperty(JSON_PROPERTY_C_INTEGER_ARRAY)
  public void setcIntegerArray_JsonNullable(JsonNullable> cIntegerArray) {
    this.cIntegerArray = cIntegerArray;
  }

  public void setcIntegerArray(List cIntegerArray) {
    this.cIntegerArray = JsonNullable.>of(cIntegerArray);
  }


  public PrimitiveArraysObject aLongArray(List aLongArray) {
    this.aLongArray = JsonNullable.>of(aLongArray);
    return this;
  }

  public PrimitiveArraysObject addALongArrayItem(Long aLongArrayItem) {
    if (this.aLongArray == null || !this.aLongArray.isPresent()) {
      this.aLongArray = JsonNullable.>of(new ArrayList<>());
    }
    try {
      this.aLongArray.get().add(aLongArrayItem);
    } catch (java.util.NoSuchElementException e) {
      // this can never happen, as we make sure above that the value is present
    }
    return this;
  }

  /**
   * Get aLongArray
   * @return aLongArray
   */
  @javax.annotation.Nullable
  @JsonIgnore

  public List getaLongArray() {
        return aLongArray.orElse(null);
  }

  @JsonProperty(JSON_PROPERTY_A_LONG_ARRAY)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public JsonNullable> getaLongArray_JsonNullable() {
    return aLongArray;
  }
  
  @JsonProperty(JSON_PROPERTY_A_LONG_ARRAY)
  public void setaLongArray_JsonNullable(JsonNullable> aLongArray) {
    this.aLongArray = aLongArray;
  }

  public void setaLongArray(List aLongArray) {
    this.aLongArray = JsonNullable.>of(aLongArray);
  }


  public PrimitiveArraysObject bLongArray(List bLongArray) {
    this.bLongArray = JsonNullable.>of(bLongArray);
    return this;
  }

  public PrimitiveArraysObject addBLongArrayItem(Long bLongArrayItem) {
    if (this.bLongArray == null || !this.bLongArray.isPresent()) {
      this.bLongArray = JsonNullable.>of(new ArrayList<>());
    }
    try {
      this.bLongArray.get().add(bLongArrayItem);
    } catch (java.util.NoSuchElementException e) {
      // this can never happen, as we make sure above that the value is present
    }
    return this;
  }

  /**
   * Get bLongArray
   * @return bLongArray
   */
  @javax.annotation.Nullable
  @JsonIgnore

  public List getbLongArray() {
        return bLongArray.orElse(null);
  }

  @JsonProperty(JSON_PROPERTY_B_LONG_ARRAY)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public JsonNullable> getbLongArray_JsonNullable() {
    return bLongArray;
  }
  
  @JsonProperty(JSON_PROPERTY_B_LONG_ARRAY)
  public void setbLongArray_JsonNullable(JsonNullable> bLongArray) {
    this.bLongArray = bLongArray;
  }

  public void setbLongArray(List bLongArray) {
    this.bLongArray = JsonNullable.>of(bLongArray);
  }


  public PrimitiveArraysObject aBigIntegerArray(List aBigIntegerArray) {
    this.aBigIntegerArray = JsonNullable.>of(aBigIntegerArray);
    return this;
  }

  public PrimitiveArraysObject addABigIntegerArrayItem(Long aBigIntegerArrayItem) {
    if (this.aBigIntegerArray == null || !this.aBigIntegerArray.isPresent()) {
      this.aBigIntegerArray = JsonNullable.>of(new ArrayList<>());
    }
    try {
      this.aBigIntegerArray.get().add(aBigIntegerArrayItem);
    } catch (java.util.NoSuchElementException e) {
      // this can never happen, as we make sure above that the value is present
    }
    return this;
  }

  /**
   * Get aBigIntegerArray
   * @return aBigIntegerArray
   */
  @javax.annotation.Nullable
  @JsonIgnore

  public List getaBigIntegerArray() {
        return aBigIntegerArray.orElse(null);
  }

  @JsonProperty(JSON_PROPERTY_A_BIG_INTEGER_ARRAY)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public JsonNullable> getaBigIntegerArray_JsonNullable() {
    return aBigIntegerArray;
  }
  
  @JsonProperty(JSON_PROPERTY_A_BIG_INTEGER_ARRAY)
  public void setaBigIntegerArray_JsonNullable(JsonNullable> aBigIntegerArray) {
    this.aBigIntegerArray = aBigIntegerArray;
  }

  public void setaBigIntegerArray(List aBigIntegerArray) {
    this.aBigIntegerArray = JsonNullable.>of(aBigIntegerArray);
  }


  public PrimitiveArraysObject aCharacterArray(List aCharacterArray) {
    this.aCharacterArray = JsonNullable.>of(aCharacterArray);
    return this;
  }

  public PrimitiveArraysObject addACharacterArrayItem(String aCharacterArrayItem) {
    if (this.aCharacterArray == null || !this.aCharacterArray.isPresent()) {
      this.aCharacterArray = JsonNullable.>of(new ArrayList<>());
    }
    try {
      this.aCharacterArray.get().add(aCharacterArrayItem);
    } catch (java.util.NoSuchElementException e) {
      // this can never happen, as we make sure above that the value is present
    }
    return this;
  }

  /**
   * Get aCharacterArray
   * @return aCharacterArray
   */
  @javax.annotation.Nullable
  @JsonIgnore

  public List getaCharacterArray() {
        return aCharacterArray.orElse(null);
  }

  @JsonProperty(JSON_PROPERTY_A_CHARACTER_ARRAY)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public JsonNullable> getaCharacterArray_JsonNullable() {
    return aCharacterArray;
  }
  
  @JsonProperty(JSON_PROPERTY_A_CHARACTER_ARRAY)
  public void setaCharacterArray_JsonNullable(JsonNullable> aCharacterArray) {
    this.aCharacterArray = aCharacterArray;
  }

  public void setaCharacterArray(List aCharacterArray) {
    this.aCharacterArray = JsonNullable.>of(aCharacterArray);
  }


  public PrimitiveArraysObject bCharacterArray(List bCharacterArray) {
    this.bCharacterArray = JsonNullable.>of(bCharacterArray);
    return this;
  }

  public PrimitiveArraysObject addBCharacterArrayItem(String bCharacterArrayItem) {
    if (this.bCharacterArray == null || !this.bCharacterArray.isPresent()) {
      this.bCharacterArray = JsonNullable.>of(new ArrayList<>());
    }
    try {
      this.bCharacterArray.get().add(bCharacterArrayItem);
    } catch (java.util.NoSuchElementException e) {
      // this can never happen, as we make sure above that the value is present
    }
    return this;
  }

  /**
   * Get bCharacterArray
   * @return bCharacterArray
   */
  @javax.annotation.Nullable
  @JsonIgnore

  public List getbCharacterArray() {
        return bCharacterArray.orElse(null);
  }

  @JsonProperty(JSON_PROPERTY_B_CHARACTER_ARRAY)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public JsonNullable> getbCharacterArray_JsonNullable() {
    return bCharacterArray;
  }
  
  @JsonProperty(JSON_PROPERTY_B_CHARACTER_ARRAY)
  public void setbCharacterArray_JsonNullable(JsonNullable> bCharacterArray) {
    this.bCharacterArray = bCharacterArray;
  }

  public void setbCharacterArray(List bCharacterArray) {
    this.bCharacterArray = JsonNullable.>of(bCharacterArray);
  }


  public PrimitiveArraysObject aFloatArray(List aFloatArray) {
    this.aFloatArray = JsonNullable.>of(aFloatArray);
    return this;
  }

  public PrimitiveArraysObject addAFloatArrayItem(Float aFloatArrayItem) {
    if (this.aFloatArray == null || !this.aFloatArray.isPresent()) {
      this.aFloatArray = JsonNullable.>of(new ArrayList<>());
    }
    try {
      this.aFloatArray.get().add(aFloatArrayItem);
    } catch (java.util.NoSuchElementException e) {
      // this can never happen, as we make sure above that the value is present
    }
    return this;
  }

  /**
   * Get aFloatArray
   * @return aFloatArray
   */
  @javax.annotation.Nullable
  @JsonIgnore

  public List getaFloatArray() {
        return aFloatArray.orElse(null);
  }

  @JsonProperty(JSON_PROPERTY_A_FLOAT_ARRAY)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public JsonNullable> getaFloatArray_JsonNullable() {
    return aFloatArray;
  }
  
  @JsonProperty(JSON_PROPERTY_A_FLOAT_ARRAY)
  public void setaFloatArray_JsonNullable(JsonNullable> aFloatArray) {
    this.aFloatArray = aFloatArray;
  }

  public void setaFloatArray(List aFloatArray) {
    this.aFloatArray = JsonNullable.>of(aFloatArray);
  }


  public PrimitiveArraysObject bFloatArray(List bFloatArray) {
    this.bFloatArray = JsonNullable.>of(bFloatArray);
    return this;
  }

  public PrimitiveArraysObject addBFloatArrayItem(Float bFloatArrayItem) {
    if (this.bFloatArray == null || !this.bFloatArray.isPresent()) {
      this.bFloatArray = JsonNullable.>of(new ArrayList<>());
    }
    try {
      this.bFloatArray.get().add(bFloatArrayItem);
    } catch (java.util.NoSuchElementException e) {
      // this can never happen, as we make sure above that the value is present
    }
    return this;
  }

  /**
   * Get bFloatArray
   * @return bFloatArray
   */
  @javax.annotation.Nullable
  @JsonIgnore

  public List getbFloatArray() {
        return bFloatArray.orElse(null);
  }

  @JsonProperty(JSON_PROPERTY_B_FLOAT_ARRAY)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public JsonNullable> getbFloatArray_JsonNullable() {
    return bFloatArray;
  }
  
  @JsonProperty(JSON_PROPERTY_B_FLOAT_ARRAY)
  public void setbFloatArray_JsonNullable(JsonNullable> bFloatArray) {
    this.bFloatArray = bFloatArray;
  }

  public void setbFloatArray(List bFloatArray) {
    this.bFloatArray = JsonNullable.>of(bFloatArray);
  }


  public PrimitiveArraysObject aDoubleArray(List aDoubleArray) {
    this.aDoubleArray = JsonNullable.>of(aDoubleArray);
    return this;
  }

  public PrimitiveArraysObject addADoubleArrayItem(Double aDoubleArrayItem) {
    if (this.aDoubleArray == null || !this.aDoubleArray.isPresent()) {
      this.aDoubleArray = JsonNullable.>of(new ArrayList<>());
    }
    try {
      this.aDoubleArray.get().add(aDoubleArrayItem);
    } catch (java.util.NoSuchElementException e) {
      // this can never happen, as we make sure above that the value is present
    }
    return this;
  }

  /**
   * Get aDoubleArray
   * @return aDoubleArray
   */
  @javax.annotation.Nullable
  @JsonIgnore

  public List getaDoubleArray() {
        return aDoubleArray.orElse(null);
  }

  @JsonProperty(JSON_PROPERTY_A_DOUBLE_ARRAY)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public JsonNullable> getaDoubleArray_JsonNullable() {
    return aDoubleArray;
  }
  
  @JsonProperty(JSON_PROPERTY_A_DOUBLE_ARRAY)
  public void setaDoubleArray_JsonNullable(JsonNullable> aDoubleArray) {
    this.aDoubleArray = aDoubleArray;
  }

  public void setaDoubleArray(List aDoubleArray) {
    this.aDoubleArray = JsonNullable.>of(aDoubleArray);
  }


  public PrimitiveArraysObject bDoubleArray(List bDoubleArray) {
    this.bDoubleArray = JsonNullable.>of(bDoubleArray);
    return this;
  }

  public PrimitiveArraysObject addBDoubleArrayItem(Double bDoubleArrayItem) {
    if (this.bDoubleArray == null || !this.bDoubleArray.isPresent()) {
      this.bDoubleArray = JsonNullable.>of(new ArrayList<>());
    }
    try {
      this.bDoubleArray.get().add(bDoubleArrayItem);
    } catch (java.util.NoSuchElementException e) {
      // this can never happen, as we make sure above that the value is present
    }
    return this;
  }

  /**
   * Get bDoubleArray
   * @return bDoubleArray
   */
  @javax.annotation.Nullable
  @JsonIgnore

  public List getbDoubleArray() {
        return bDoubleArray.orElse(null);
  }

  @JsonProperty(JSON_PROPERTY_B_DOUBLE_ARRAY)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public JsonNullable> getbDoubleArray_JsonNullable() {
    return bDoubleArray;
  }
  
  @JsonProperty(JSON_PROPERTY_B_DOUBLE_ARRAY)
  public void setbDoubleArray_JsonNullable(JsonNullable> bDoubleArray) {
    this.bDoubleArray = bDoubleArray;
  }

  public void setbDoubleArray(List bDoubleArray) {
    this.bDoubleArray = JsonNullable.>of(bDoubleArray);
  }


  public PrimitiveArraysObject aBigDecimalArray(List aBigDecimalArray) {
    this.aBigDecimalArray = JsonNullable.>of(aBigDecimalArray);
    return this;
  }

  public PrimitiveArraysObject addABigDecimalArrayItem(Double aBigDecimalArrayItem) {
    if (this.aBigDecimalArray == null || !this.aBigDecimalArray.isPresent()) {
      this.aBigDecimalArray = JsonNullable.>of(new ArrayList<>());
    }
    try {
      this.aBigDecimalArray.get().add(aBigDecimalArrayItem);
    } catch (java.util.NoSuchElementException e) {
      // this can never happen, as we make sure above that the value is present
    }
    return this;
  }

  /**
   * Get aBigDecimalArray
   * @return aBigDecimalArray
   */
  @javax.annotation.Nullable
  @JsonIgnore

  public List getaBigDecimalArray() {
        return aBigDecimalArray.orElse(null);
  }

  @JsonProperty(JSON_PROPERTY_A_BIG_DECIMAL_ARRAY)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public JsonNullable> getaBigDecimalArray_JsonNullable() {
    return aBigDecimalArray;
  }
  
  @JsonProperty(JSON_PROPERTY_A_BIG_DECIMAL_ARRAY)
  public void setaBigDecimalArray_JsonNullable(JsonNullable> aBigDecimalArray) {
    this.aBigDecimalArray = aBigDecimalArray;
  }

  public void setaBigDecimalArray(List aBigDecimalArray) {
    this.aBigDecimalArray = JsonNullable.>of(aBigDecimalArray);
  }


  public PrimitiveArraysObject aStringArray(List aStringArray) {
    this.aStringArray = JsonNullable.>of(aStringArray);
    return this;
  }

  public PrimitiveArraysObject addAStringArrayItem(String aStringArrayItem) {
    if (this.aStringArray == null || !this.aStringArray.isPresent()) {
      this.aStringArray = JsonNullable.>of(new ArrayList<>());
    }
    try {
      this.aStringArray.get().add(aStringArrayItem);
    } catch (java.util.NoSuchElementException e) {
      // this can never happen, as we make sure above that the value is present
    }
    return this;
  }

  /**
   * Get aStringArray
   * @return aStringArray
   */
  @javax.annotation.Nullable
  @JsonIgnore

  public List getaStringArray() {
        return aStringArray.orElse(null);
  }

  @JsonProperty(JSON_PROPERTY_A_STRING_ARRAY)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public JsonNullable> getaStringArray_JsonNullable() {
    return aStringArray;
  }
  
  @JsonProperty(JSON_PROPERTY_A_STRING_ARRAY)
  public void setaStringArray_JsonNullable(JsonNullable> aStringArray) {
    this.aStringArray = aStringArray;
  }

  public void setaStringArray(List aStringArray) {
    this.aStringArray = JsonNullable.>of(aStringArray);
  }


  public PrimitiveArraysObject bStringArray(List bStringArray) {
    this.bStringArray = JsonNullable.>of(bStringArray);
    return this;
  }

  public PrimitiveArraysObject addBStringArrayItem(String bStringArrayItem) {
    if (this.bStringArray == null || !this.bStringArray.isPresent()) {
      this.bStringArray = JsonNullable.>of(new ArrayList<>());
    }
    try {
      this.bStringArray.get().add(bStringArrayItem);
    } catch (java.util.NoSuchElementException e) {
      // this can never happen, as we make sure above that the value is present
    }
    return this;
  }

  /**
   * Get bStringArray
   * @return bStringArray
   */
  @javax.annotation.Nullable
  @JsonIgnore

  public List getbStringArray() {
        return bStringArray.orElse(null);
  }

  @JsonProperty(JSON_PROPERTY_B_STRING_ARRAY)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public JsonNullable> getbStringArray_JsonNullable() {
    return bStringArray;
  }
  
  @JsonProperty(JSON_PROPERTY_B_STRING_ARRAY)
  public void setbStringArray_JsonNullable(JsonNullable> bStringArray) {
    this.bStringArray = bStringArray;
  }

  public void setbStringArray(List bStringArray) {
    this.bStringArray = JsonNullable.>of(bStringArray);
  }


  public PrimitiveArraysObject cStringArray(List cStringArray) {
    this.cStringArray = cStringArray;
    return this;
  }

  public PrimitiveArraysObject addCStringArrayItem(String cStringArrayItem) {
    if (this.cStringArray == null) {
      this.cStringArray = new ArrayList<>();
    }
    this.cStringArray.add(cStringArrayItem);
    return this;
  }

  /**
   * Get cStringArray
   * @return cStringArray
   */
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_C_STRING_ARRAY)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public List getcStringArray() {
    return cStringArray;
  }


  @JsonProperty(JSON_PROPERTY_C_STRING_ARRAY)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setcStringArray(List cStringArray) {
    this.cStringArray = cStringArray;
  }


  /**
   * Return true if this PrimitiveArraysObject object is equal to o.
   */
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    PrimitiveArraysObject primitiveArraysObject = (PrimitiveArraysObject) o;
    return equalsNullable(this.aBooleanArray, primitiveArraysObject.aBooleanArray) &&
        equalsNullable(this.bBooleanArray, primitiveArraysObject.bBooleanArray) &&
        equalsNullable(this.cBooleanArray, primitiveArraysObject.cBooleanArray) &&
        equalsNullable(this.aByteArray, primitiveArraysObject.aByteArray) &&
        equalsNullable(this.bByteArray, primitiveArraysObject.bByteArray) &&
        equalsNullable(this.aShortArray, primitiveArraysObject.aShortArray) &&
        equalsNullable(this.bShortArray, primitiveArraysObject.bShortArray) &&
        equalsNullable(this.aIntegerArray, primitiveArraysObject.aIntegerArray) &&
        equalsNullable(this.bIntegerArray, primitiveArraysObject.bIntegerArray) &&
        equalsNullable(this.cIntegerArray, primitiveArraysObject.cIntegerArray) &&
        equalsNullable(this.aLongArray, primitiveArraysObject.aLongArray) &&
        equalsNullable(this.bLongArray, primitiveArraysObject.bLongArray) &&
        equalsNullable(this.aBigIntegerArray, primitiveArraysObject.aBigIntegerArray) &&
        equalsNullable(this.aCharacterArray, primitiveArraysObject.aCharacterArray) &&
        equalsNullable(this.bCharacterArray, primitiveArraysObject.bCharacterArray) &&
        equalsNullable(this.aFloatArray, primitiveArraysObject.aFloatArray) &&
        equalsNullable(this.bFloatArray, primitiveArraysObject.bFloatArray) &&
        equalsNullable(this.aDoubleArray, primitiveArraysObject.aDoubleArray) &&
        equalsNullable(this.bDoubleArray, primitiveArraysObject.bDoubleArray) &&
        equalsNullable(this.aBigDecimalArray, primitiveArraysObject.aBigDecimalArray) &&
        equalsNullable(this.aStringArray, primitiveArraysObject.aStringArray) &&
        equalsNullable(this.bStringArray, primitiveArraysObject.bStringArray) &&
        Objects.equals(this.cStringArray, primitiveArraysObject.cStringArray);
  }

  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(hashCodeNullable(aBooleanArray), hashCodeNullable(bBooleanArray), hashCodeNullable(cBooleanArray), hashCodeNullable(aByteArray), hashCodeNullable(bByteArray), hashCodeNullable(aShortArray), hashCodeNullable(bShortArray), hashCodeNullable(aIntegerArray), hashCodeNullable(bIntegerArray), hashCodeNullable(cIntegerArray), hashCodeNullable(aLongArray), hashCodeNullable(bLongArray), hashCodeNullable(aBigIntegerArray), hashCodeNullable(aCharacterArray), hashCodeNullable(bCharacterArray), hashCodeNullable(aFloatArray), hashCodeNullable(bFloatArray), hashCodeNullable(aDoubleArray), hashCodeNullable(bDoubleArray), hashCodeNullable(aBigDecimalArray), hashCodeNullable(aStringArray), hashCodeNullable(bStringArray), cStringArray);
  }

  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 PrimitiveArraysObject {\n");
    sb.append("    aBooleanArray: ").append(toIndentedString(aBooleanArray)).append("\n");
    sb.append("    bBooleanArray: ").append(toIndentedString(bBooleanArray)).append("\n");
    sb.append("    cBooleanArray: ").append(toIndentedString(cBooleanArray)).append("\n");
    sb.append("    aByteArray: ").append(toIndentedString(aByteArray)).append("\n");
    sb.append("    bByteArray: ").append(toIndentedString(bByteArray)).append("\n");
    sb.append("    aShortArray: ").append(toIndentedString(aShortArray)).append("\n");
    sb.append("    bShortArray: ").append(toIndentedString(bShortArray)).append("\n");
    sb.append("    aIntegerArray: ").append(toIndentedString(aIntegerArray)).append("\n");
    sb.append("    bIntegerArray: ").append(toIndentedString(bIntegerArray)).append("\n");
    sb.append("    cIntegerArray: ").append(toIndentedString(cIntegerArray)).append("\n");
    sb.append("    aLongArray: ").append(toIndentedString(aLongArray)).append("\n");
    sb.append("    bLongArray: ").append(toIndentedString(bLongArray)).append("\n");
    sb.append("    aBigIntegerArray: ").append(toIndentedString(aBigIntegerArray)).append("\n");
    sb.append("    aCharacterArray: ").append(toIndentedString(aCharacterArray)).append("\n");
    sb.append("    bCharacterArray: ").append(toIndentedString(bCharacterArray)).append("\n");
    sb.append("    aFloatArray: ").append(toIndentedString(aFloatArray)).append("\n");
    sb.append("    bFloatArray: ").append(toIndentedString(bFloatArray)).append("\n");
    sb.append("    aDoubleArray: ").append(toIndentedString(aDoubleArray)).append("\n");
    sb.append("    bDoubleArray: ").append(toIndentedString(bDoubleArray)).append("\n");
    sb.append("    aBigDecimalArray: ").append(toIndentedString(aBigDecimalArray)).append("\n");
    sb.append("    aStringArray: ").append(toIndentedString(aStringArray)).append("\n");
    sb.append("    bStringArray: ").append(toIndentedString(bStringArray)).append("\n");
    sb.append("    cStringArray: ").append(toIndentedString(cStringArray)).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