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

com.squarespace.cldrengine.api.CurrencyDisplayNameOptions Maven / Gradle / Ivy

The newest version!
package com.squarespace.cldrengine.api;

import lombok.Generated;
import lombok.EqualsAndHashCode;

@Generated
@EqualsAndHashCode
public class CurrencyDisplayNameOptions {

  public final Option context = Option.option();

  public CurrencyDisplayNameOptions() {
  }

  public CurrencyDisplayNameOptions(CurrencyDisplayNameOptions arg) {
    this.context.set(arg.context);
  }

  public CurrencyDisplayNameOptions context(ContextType arg) {
    this.context.set(arg);
    return this;
  }

  public CurrencyDisplayNameOptions context(Option arg) {
    this.context.set(arg);
    return this;
  }

  public static CurrencyDisplayNameOptions build() {
    return new CurrencyDisplayNameOptions();
  }

  public CurrencyDisplayNameOptions copy() {
    return new CurrencyDisplayNameOptions(this);
  }

  public CurrencyDisplayNameOptions mergeIf(CurrencyDisplayNameOptions ...args) {
    CurrencyDisplayNameOptions o = new CurrencyDisplayNameOptions(this);
    for (CurrencyDisplayNameOptions arg : args) {
      o._mergeIf(arg);
    }
    return o;
  }

  protected void _mergeIf(CurrencyDisplayNameOptions o) {
    this.context.setIf(o.context);
  }

  public CurrencyDisplayNameOptions merge(CurrencyDisplayNameOptions ...args) {
    CurrencyDisplayNameOptions o = new CurrencyDisplayNameOptions(this);
    for (CurrencyDisplayNameOptions arg : args) {
      o._merge(arg);
    }
    return o;
  }

  protected void _merge(CurrencyDisplayNameOptions o) {
    this.context.set(o.context);
  }


  @Override
  public String toString() {
    StringBuilder buf = new StringBuilder("CurrencyDisplayNameOptions( ");
    this._tostring(buf);
    return buf.append(')').toString();
  }

  protected void _tostring(StringBuilder buf) {
    if (context.ok()) {
      buf.append("context=").append(context).append(' ');
    }
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy