com.rosetta.jptlegalagreement.model.CsaInitialMargin2016JapaneseLaw Maven / Gradle / Ivy
The newest version!
package com.rosetta.jptlegalagreement.model;
import com.rosetta.jptlegalagreement.model.AdditionalRepresentation;
import com.rosetta.jptlegalagreement.model.AdditionalRepresentation.AdditionalRepresentationBuilder;
import com.rosetta.jptlegalagreement.model.CalculationDateLocation;
import com.rosetta.jptlegalagreement.model.CalculationDateLocation.CalculationDateLocationBuilder;
import com.rosetta.jptlegalagreement.model.ConditionsPrecedent;
import com.rosetta.jptlegalagreement.model.ConditionsPrecedent.ConditionsPrecedentBuilder;
import com.rosetta.jptlegalagreement.model.ContactElection;
import com.rosetta.jptlegalagreement.model.ContactElection.ContactElectionBuilder;
import com.rosetta.jptlegalagreement.model.CreditSupportObligationsInitialMargin;
import com.rosetta.jptlegalagreement.model.CreditSupportObligationsInitialMargin.CreditSupportObligationsInitialMarginBuilder;
import com.rosetta.jptlegalagreement.model.CsaInitialMargin2016;
import com.rosetta.jptlegalagreement.model.CsaInitialMargin2016.CsaInitialMargin2016Builder;
import com.rosetta.jptlegalagreement.model.CsaInitialMargin2016.CsaInitialMargin2016BuilderImpl;
import com.rosetta.jptlegalagreement.model.CsaInitialMargin2016.CsaInitialMargin2016Impl;
import com.rosetta.jptlegalagreement.model.CsaInitialMargin2016JapaneseLaw;
import com.rosetta.jptlegalagreement.model.CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder;
import com.rosetta.jptlegalagreement.model.CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilderImpl;
import com.rosetta.jptlegalagreement.model.CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawImpl;
import com.rosetta.jptlegalagreement.model.DisputeResolution;
import com.rosetta.jptlegalagreement.model.DisputeResolution.DisputeResolutionBuilder;
import com.rosetta.jptlegalagreement.model.FxHaircutCurrency;
import com.rosetta.jptlegalagreement.model.FxHaircutCurrency.FxHaircutCurrencyBuilder;
import com.rosetta.jptlegalagreement.model.Method;
import com.rosetta.jptlegalagreement.model.Method.MethodBuilder;
import com.rosetta.jptlegalagreement.model.NotificationTime;
import com.rosetta.jptlegalagreement.model.NotificationTime.NotificationTimeBuilder;
import com.rosetta.jptlegalagreement.model.OneWayProvisions;
import com.rosetta.jptlegalagreement.model.OneWayProvisions.OneWayProvisionsBuilder;
import com.rosetta.jptlegalagreement.model.Regime;
import com.rosetta.jptlegalagreement.model.Regime.RegimeBuilder;
import com.rosetta.jptlegalagreement.model.SensitivityMethodology;
import com.rosetta.jptlegalagreement.model.SensitivityMethodology.SensitivityMethodologyBuilder;
import com.rosetta.jptlegalagreement.model.Substitution;
import com.rosetta.jptlegalagreement.model.Substitution.SubstitutionBuilder;
import com.rosetta.jptlegalagreement.model.TerminationCurrencyAmendment;
import com.rosetta.jptlegalagreement.model.TerminationCurrencyAmendment.TerminationCurrencyAmendmentBuilder;
import com.rosetta.jptlegalagreement.model.meta.CsaInitialMargin2016JapaneseLawMeta;
import com.rosetta.model.lib.RosettaModelObject;
import com.rosetta.model.lib.RosettaModelObjectBuilder;
import com.rosetta.model.lib.annotations.RosettaAttribute;
import com.rosetta.model.lib.annotations.RosettaDataType;
import com.rosetta.model.lib.meta.RosettaMetaData;
import com.rosetta.model.lib.path.RosettaPath;
import com.rosetta.model.lib.process.BuilderMerger;
import com.rosetta.model.lib.process.BuilderProcessor;
import com.rosetta.model.lib.process.Processor;
import com.rosetta.model.metafields.FieldWithMetaString;
import com.rosetta.model.metafields.FieldWithMetaString.FieldWithMetaStringBuilder;
import java.util.Objects;
import static java.util.Optional.ofNullable;
/**
* @version test
*/
@RosettaDataType(value="CsaInitialMargin2016JapaneseLaw", builder=CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilderImpl.class, version="test")
public interface CsaInitialMargin2016JapaneseLaw extends CsaInitialMargin2016 {
CsaInitialMargin2016JapaneseLawMeta metaData = new CsaInitialMargin2016JapaneseLawMeta();
/*********************** Getter Methods ***********************/
Boolean getAutomaticSetOff();
/*********************** Build Methods ***********************/
CsaInitialMargin2016JapaneseLaw build();
CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder toBuilder();
static CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder builder() {
return new CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilderImpl();
}
/*********************** Utility Methods ***********************/
@Override
default RosettaMetaData extends CsaInitialMargin2016JapaneseLaw> metaData() {
return metaData;
}
@Override
default Class extends CsaInitialMargin2016JapaneseLaw> getType() {
return CsaInitialMargin2016JapaneseLaw.class;
}
@Override
default void process(RosettaPath path, Processor processor) {
processRosetta(path.newSubPath("baseCurrency"), processor, FieldWithMetaString.class, getBaseCurrency());
processor.processBasic(path.newSubPath("additionalObligations"), String.class, getAdditionalObligations(), this);
processRosetta(path.newSubPath("conditionsPrecedent"), processor, ConditionsPrecedent.class, getConditionsPrecedent());
processRosetta(path.newSubPath("substitution"), processor, Substitution.class, getSubstitution());
processRosetta(path.newSubPath("disputeResolution"), processor, DisputeResolution.class, getDisputeResolution());
processRosetta(path.newSubPath("additionalRepresentation"), processor, AdditionalRepresentation.class, getAdditionalRepresentation());
processRosetta(path.newSubPath("demandsAndNotices"), processor, ContactElection.class, getDemandsAndNotices());
processRosetta(path.newSubPath("addressesForTransfer"), processor, ContactElection.class, getAddressesForTransfer());
processor.processBasic(path.newSubPath("bespokeProvision"), String.class, getBespokeProvision(), this);
processRosetta(path.newSubPath("regime"), processor, Regime.class, getRegime());
processRosetta(path.newSubPath("oneWayProvisions"), processor, OneWayProvisions.class, getOneWayProvisions());
processRosetta(path.newSubPath("method"), processor, Method.class, getMethod());
processor.processBasic(path.newSubPath("identifiedCrossCurrencySwap"), Boolean.class, getIdentifiedCrossCurrencySwap(), this);
processRosetta(path.newSubPath("sensitivityToEquity"), processor, SensitivityMethodology.class, getSensitivityToEquity());
processRosetta(path.newSubPath("sensitivityToCommodity"), processor, SensitivityMethodology.class, getSensitivityToCommodity());
processRosetta(path.newSubPath("fxHaircutCurrency"), processor, FxHaircutCurrency.class, getFxHaircutCurrency());
processRosetta(path.newSubPath("creditSupportObligations"), processor, CreditSupportObligationsInitialMargin.class, getCreditSupportObligations());
processRosetta(path.newSubPath("calculationDateLocation"), processor, CalculationDateLocation.class, getCalculationDateLocation());
processRosetta(path.newSubPath("notificationTime"), processor, NotificationTime.class, getNotificationTime());
processRosetta(path.newSubPath("terminationCurrency"), processor, TerminationCurrencyAmendment.class, getTerminationCurrency());
processor.processBasic(path.newSubPath("automaticSetOff"), Boolean.class, getAutomaticSetOff(), this);
}
/*********************** Builder Interface ***********************/
interface CsaInitialMargin2016JapaneseLawBuilder extends CsaInitialMargin2016JapaneseLaw, CsaInitialMargin2016.CsaInitialMargin2016Builder {
@Override
CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder setBaseCurrency(FieldWithMetaString baseCurrency);
@Override
CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder setBaseCurrencyValue(String baseCurrency);
@Override
CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder setAdditionalObligations(String additionalObligations);
@Override
CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder setConditionsPrecedent(ConditionsPrecedent conditionsPrecedent);
@Override
CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder setSubstitution(Substitution substitution);
@Override
CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder setDisputeResolution(DisputeResolution disputeResolution);
@Override
CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder setAdditionalRepresentation(AdditionalRepresentation additionalRepresentation);
@Override
CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder setDemandsAndNotices(ContactElection demandsAndNotices);
@Override
CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder setAddressesForTransfer(ContactElection addressesForTransfer);
@Override
CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder setBespokeProvision(String bespokeProvision);
@Override
CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder setRegime(Regime regime);
@Override
CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder setOneWayProvisions(OneWayProvisions oneWayProvisions);
@Override
CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder setMethod(Method method);
@Override
CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder setIdentifiedCrossCurrencySwap(Boolean identifiedCrossCurrencySwap);
@Override
CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder setSensitivityToEquity(SensitivityMethodology sensitivityToEquity);
@Override
CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder setSensitivityToCommodity(SensitivityMethodology sensitivityToCommodity);
@Override
CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder setFxHaircutCurrency(FxHaircutCurrency fxHaircutCurrency);
@Override
CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder setCreditSupportObligations(CreditSupportObligationsInitialMargin creditSupportObligations);
@Override
CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder setCalculationDateLocation(CalculationDateLocation calculationDateLocation);
@Override
CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder setNotificationTime(NotificationTime notificationTime);
@Override
CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder setTerminationCurrency(TerminationCurrencyAmendment terminationCurrency);
CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder setAutomaticSetOff(Boolean automaticSetOff);
@Override
default void process(RosettaPath path, BuilderProcessor processor) {
processRosetta(path.newSubPath("baseCurrency"), processor, FieldWithMetaString.FieldWithMetaStringBuilder.class, getBaseCurrency());
processor.processBasic(path.newSubPath("additionalObligations"), String.class, getAdditionalObligations(), this);
processRosetta(path.newSubPath("conditionsPrecedent"), processor, ConditionsPrecedent.ConditionsPrecedentBuilder.class, getConditionsPrecedent());
processRosetta(path.newSubPath("substitution"), processor, Substitution.SubstitutionBuilder.class, getSubstitution());
processRosetta(path.newSubPath("disputeResolution"), processor, DisputeResolution.DisputeResolutionBuilder.class, getDisputeResolution());
processRosetta(path.newSubPath("additionalRepresentation"), processor, AdditionalRepresentation.AdditionalRepresentationBuilder.class, getAdditionalRepresentation());
processRosetta(path.newSubPath("demandsAndNotices"), processor, ContactElection.ContactElectionBuilder.class, getDemandsAndNotices());
processRosetta(path.newSubPath("addressesForTransfer"), processor, ContactElection.ContactElectionBuilder.class, getAddressesForTransfer());
processor.processBasic(path.newSubPath("bespokeProvision"), String.class, getBespokeProvision(), this);
processRosetta(path.newSubPath("regime"), processor, Regime.RegimeBuilder.class, getRegime());
processRosetta(path.newSubPath("oneWayProvisions"), processor, OneWayProvisions.OneWayProvisionsBuilder.class, getOneWayProvisions());
processRosetta(path.newSubPath("method"), processor, Method.MethodBuilder.class, getMethod());
processor.processBasic(path.newSubPath("identifiedCrossCurrencySwap"), Boolean.class, getIdentifiedCrossCurrencySwap(), this);
processRosetta(path.newSubPath("sensitivityToEquity"), processor, SensitivityMethodology.SensitivityMethodologyBuilder.class, getSensitivityToEquity());
processRosetta(path.newSubPath("sensitivityToCommodity"), processor, SensitivityMethodology.SensitivityMethodologyBuilder.class, getSensitivityToCommodity());
processRosetta(path.newSubPath("fxHaircutCurrency"), processor, FxHaircutCurrency.FxHaircutCurrencyBuilder.class, getFxHaircutCurrency());
processRosetta(path.newSubPath("creditSupportObligations"), processor, CreditSupportObligationsInitialMargin.CreditSupportObligationsInitialMarginBuilder.class, getCreditSupportObligations());
processRosetta(path.newSubPath("calculationDateLocation"), processor, CalculationDateLocation.CalculationDateLocationBuilder.class, getCalculationDateLocation());
processRosetta(path.newSubPath("notificationTime"), processor, NotificationTime.NotificationTimeBuilder.class, getNotificationTime());
processRosetta(path.newSubPath("terminationCurrency"), processor, TerminationCurrencyAmendment.TerminationCurrencyAmendmentBuilder.class, getTerminationCurrency());
processor.processBasic(path.newSubPath("automaticSetOff"), Boolean.class, getAutomaticSetOff(), this);
}
CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder prune();
}
/*********************** Immutable Implementation of CsaInitialMargin2016JapaneseLaw ***********************/
class CsaInitialMargin2016JapaneseLawImpl extends CsaInitialMargin2016.CsaInitialMargin2016Impl implements CsaInitialMargin2016JapaneseLaw {
private final Boolean automaticSetOff;
protected CsaInitialMargin2016JapaneseLawImpl(CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder builder) {
super(builder);
this.automaticSetOff = builder.getAutomaticSetOff();
}
@Override
@RosettaAttribute("automaticSetOff")
public Boolean getAutomaticSetOff() {
return automaticSetOff;
}
@Override
public CsaInitialMargin2016JapaneseLaw build() {
return this;
}
@Override
public CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder toBuilder() {
CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder builder = builder();
setBuilderFields(builder);
return builder;
}
protected void setBuilderFields(CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder builder) {
super.setBuilderFields(builder);
ofNullable(getAutomaticSetOff()).ifPresent(builder::setAutomaticSetOff);
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || !(o instanceof RosettaModelObject) || !getType().equals(((RosettaModelObject)o).getType())) return false;
if (!super.equals(o)) return false;
CsaInitialMargin2016JapaneseLaw _that = getType().cast(o);
if (!Objects.equals(automaticSetOff, _that.getAutomaticSetOff())) return false;
return true;
}
@Override
public int hashCode() {
int _result = super.hashCode();
_result = 31 * _result + (automaticSetOff != null ? automaticSetOff.hashCode() : 0);
return _result;
}
@Override
public String toString() {
return "CsaInitialMargin2016JapaneseLaw {" +
"automaticSetOff=" + this.automaticSetOff +
'}' + " " + super.toString();
}
}
/*********************** Builder Implementation of CsaInitialMargin2016JapaneseLaw ***********************/
class CsaInitialMargin2016JapaneseLawBuilderImpl extends CsaInitialMargin2016.CsaInitialMargin2016BuilderImpl implements CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder {
protected Boolean automaticSetOff;
@Override
@RosettaAttribute("automaticSetOff")
public Boolean getAutomaticSetOff() {
return automaticSetOff;
}
@Override
@RosettaAttribute("baseCurrency")
public CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder setBaseCurrency(FieldWithMetaString _baseCurrency) {
this.baseCurrency = _baseCurrency == null ? null : _baseCurrency.toBuilder();
return this;
}
@Override
public CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder setBaseCurrencyValue(String _baseCurrency) {
this.getOrCreateBaseCurrency().setValue(_baseCurrency);
return this;
}
@Override
@RosettaAttribute("additionalObligations")
public CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder setAdditionalObligations(String _additionalObligations) {
this.additionalObligations = _additionalObligations == null ? null : _additionalObligations;
return this;
}
@Override
@RosettaAttribute("conditionsPrecedent")
public CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder setConditionsPrecedent(ConditionsPrecedent _conditionsPrecedent) {
this.conditionsPrecedent = _conditionsPrecedent == null ? null : _conditionsPrecedent.toBuilder();
return this;
}
@Override
@RosettaAttribute("substitution")
public CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder setSubstitution(Substitution _substitution) {
this.substitution = _substitution == null ? null : _substitution.toBuilder();
return this;
}
@Override
@RosettaAttribute("disputeResolution")
public CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder setDisputeResolution(DisputeResolution _disputeResolution) {
this.disputeResolution = _disputeResolution == null ? null : _disputeResolution.toBuilder();
return this;
}
@Override
@RosettaAttribute("additionalRepresentation")
public CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder setAdditionalRepresentation(AdditionalRepresentation _additionalRepresentation) {
this.additionalRepresentation = _additionalRepresentation == null ? null : _additionalRepresentation.toBuilder();
return this;
}
@Override
@RosettaAttribute("demandsAndNotices")
public CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder setDemandsAndNotices(ContactElection _demandsAndNotices) {
this.demandsAndNotices = _demandsAndNotices == null ? null : _demandsAndNotices.toBuilder();
return this;
}
@Override
@RosettaAttribute("addressesForTransfer")
public CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder setAddressesForTransfer(ContactElection _addressesForTransfer) {
this.addressesForTransfer = _addressesForTransfer == null ? null : _addressesForTransfer.toBuilder();
return this;
}
@Override
@RosettaAttribute("bespokeProvision")
public CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder setBespokeProvision(String _bespokeProvision) {
this.bespokeProvision = _bespokeProvision == null ? null : _bespokeProvision;
return this;
}
@Override
@RosettaAttribute("regime")
public CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder setRegime(Regime _regime) {
this.regime = _regime == null ? null : _regime.toBuilder();
return this;
}
@Override
@RosettaAttribute("oneWayProvisions")
public CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder setOneWayProvisions(OneWayProvisions _oneWayProvisions) {
this.oneWayProvisions = _oneWayProvisions == null ? null : _oneWayProvisions.toBuilder();
return this;
}
@Override
@RosettaAttribute("method")
public CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder setMethod(Method _method) {
this.method = _method == null ? null : _method.toBuilder();
return this;
}
@Override
@RosettaAttribute("identifiedCrossCurrencySwap")
public CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder setIdentifiedCrossCurrencySwap(Boolean _identifiedCrossCurrencySwap) {
this.identifiedCrossCurrencySwap = _identifiedCrossCurrencySwap == null ? null : _identifiedCrossCurrencySwap;
return this;
}
@Override
@RosettaAttribute("sensitivityToEquity")
public CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder setSensitivityToEquity(SensitivityMethodology _sensitivityToEquity) {
this.sensitivityToEquity = _sensitivityToEquity == null ? null : _sensitivityToEquity.toBuilder();
return this;
}
@Override
@RosettaAttribute("sensitivityToCommodity")
public CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder setSensitivityToCommodity(SensitivityMethodology _sensitivityToCommodity) {
this.sensitivityToCommodity = _sensitivityToCommodity == null ? null : _sensitivityToCommodity.toBuilder();
return this;
}
@Override
@RosettaAttribute("fxHaircutCurrency")
public CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder setFxHaircutCurrency(FxHaircutCurrency _fxHaircutCurrency) {
this.fxHaircutCurrency = _fxHaircutCurrency == null ? null : _fxHaircutCurrency.toBuilder();
return this;
}
@Override
@RosettaAttribute("creditSupportObligations")
public CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder setCreditSupportObligations(CreditSupportObligationsInitialMargin _creditSupportObligations) {
this.creditSupportObligations = _creditSupportObligations == null ? null : _creditSupportObligations.toBuilder();
return this;
}
@Override
@RosettaAttribute("calculationDateLocation")
public CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder setCalculationDateLocation(CalculationDateLocation _calculationDateLocation) {
this.calculationDateLocation = _calculationDateLocation == null ? null : _calculationDateLocation.toBuilder();
return this;
}
@Override
@RosettaAttribute("notificationTime")
public CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder setNotificationTime(NotificationTime _notificationTime) {
this.notificationTime = _notificationTime == null ? null : _notificationTime.toBuilder();
return this;
}
@Override
@RosettaAttribute("terminationCurrency")
public CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder setTerminationCurrency(TerminationCurrencyAmendment _terminationCurrency) {
this.terminationCurrency = _terminationCurrency == null ? null : _terminationCurrency.toBuilder();
return this;
}
@Override
@RosettaAttribute("automaticSetOff")
public CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder setAutomaticSetOff(Boolean _automaticSetOff) {
this.automaticSetOff = _automaticSetOff == null ? null : _automaticSetOff;
return this;
}
@Override
public CsaInitialMargin2016JapaneseLaw build() {
return new CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawImpl(this);
}
@Override
public CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder toBuilder() {
return this;
}
@SuppressWarnings("unchecked")
@Override
public CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder prune() {
super.prune();
return this;
}
@Override
public boolean hasData() {
if (super.hasData()) return true;
if (getAutomaticSetOff()!=null) return true;
return false;
}
@SuppressWarnings("unchecked")
@Override
public CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder merge(RosettaModelObjectBuilder other, BuilderMerger merger) {
super.merge(other, merger);
CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder o = (CsaInitialMargin2016JapaneseLaw.CsaInitialMargin2016JapaneseLawBuilder) other;
merger.mergeBasic(getAutomaticSetOff(), o.getAutomaticSetOff(), this::setAutomaticSetOff);
return this;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || !(o instanceof RosettaModelObject) || !getType().equals(((RosettaModelObject)o).getType())) return false;
if (!super.equals(o)) return false;
CsaInitialMargin2016JapaneseLaw _that = getType().cast(o);
if (!Objects.equals(automaticSetOff, _that.getAutomaticSetOff())) return false;
return true;
}
@Override
public int hashCode() {
int _result = super.hashCode();
_result = 31 * _result + (automaticSetOff != null ? automaticSetOff.hashCode() : 0);
return _result;
}
@Override
public String toString() {
return "CsaInitialMargin2016JapaneseLawBuilder {" +
"automaticSetOff=" + this.automaticSetOff +
'}' + " " + super.toString();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy