Please wait. This can take some minutes ...
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.
com.rosetta.externalsynonym.model.Z9 Maven / Gradle / Ivy
package com.rosetta.externalsynonym.model;
import com.rosetta.externalsynonym.model.Z9;
import com.rosetta.externalsynonym.model.Z9.Z9Builder;
import com.rosetta.externalsynonym.model.Z9.Z9BuilderImpl;
import com.rosetta.externalsynonym.model.Z9.Z9Impl;
import com.rosetta.externalsynonym.model.meta.Z9Meta;
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 java.util.Objects;
import static java.util.Optional.ofNullable;
/**
* @version test
*/
@RosettaDataType(value="Z9", builder=Z9.Z9BuilderImpl.class, version="test")
public interface Z9 extends RosettaModelObject {
Z9Meta metaData = new Z9Meta();
/*********************** Getter Methods ***********************/
String getStr1Field();
String getStr2Field();
String getStr3Field();
String getStr4Field();
String getStr5Field();
String getStr6Field();
String getStr7Field();
String getStr8Field();
String getStr9Field();
/*********************** Build Methods ***********************/
Z9 build();
Z9.Z9Builder toBuilder();
static Z9.Z9Builder builder() {
return new Z9.Z9BuilderImpl();
}
/*********************** Utility Methods ***********************/
@Override
default RosettaMetaData extends Z9> metaData() {
return metaData;
}
@Override
default Class extends Z9> getType() {
return Z9.class;
}
@Override
default void process(RosettaPath path, Processor processor) {
processor.processBasic(path.newSubPath("str1Field"), String.class, getStr1Field(), this);
processor.processBasic(path.newSubPath("str2Field"), String.class, getStr2Field(), this);
processor.processBasic(path.newSubPath("str3Field"), String.class, getStr3Field(), this);
processor.processBasic(path.newSubPath("str4Field"), String.class, getStr4Field(), this);
processor.processBasic(path.newSubPath("str5Field"), String.class, getStr5Field(), this);
processor.processBasic(path.newSubPath("str6Field"), String.class, getStr6Field(), this);
processor.processBasic(path.newSubPath("str7Field"), String.class, getStr7Field(), this);
processor.processBasic(path.newSubPath("str8Field"), String.class, getStr8Field(), this);
processor.processBasic(path.newSubPath("str9Field"), String.class, getStr9Field(), this);
}
/*********************** Builder Interface ***********************/
interface Z9Builder extends Z9, RosettaModelObjectBuilder {
Z9.Z9Builder setStr1Field(String str1Field);
Z9.Z9Builder setStr2Field(String str2Field);
Z9.Z9Builder setStr3Field(String str3Field);
Z9.Z9Builder setStr4Field(String str4Field);
Z9.Z9Builder setStr5Field(String str5Field);
Z9.Z9Builder setStr6Field(String str6Field);
Z9.Z9Builder setStr7Field(String str7Field);
Z9.Z9Builder setStr8Field(String str8Field);
Z9.Z9Builder setStr9Field(String str9Field);
@Override
default void process(RosettaPath path, BuilderProcessor processor) {
processor.processBasic(path.newSubPath("str1Field"), String.class, getStr1Field(), this);
processor.processBasic(path.newSubPath("str2Field"), String.class, getStr2Field(), this);
processor.processBasic(path.newSubPath("str3Field"), String.class, getStr3Field(), this);
processor.processBasic(path.newSubPath("str4Field"), String.class, getStr4Field(), this);
processor.processBasic(path.newSubPath("str5Field"), String.class, getStr5Field(), this);
processor.processBasic(path.newSubPath("str6Field"), String.class, getStr6Field(), this);
processor.processBasic(path.newSubPath("str7Field"), String.class, getStr7Field(), this);
processor.processBasic(path.newSubPath("str8Field"), String.class, getStr8Field(), this);
processor.processBasic(path.newSubPath("str9Field"), String.class, getStr9Field(), this);
}
Z9.Z9Builder prune();
}
/*********************** Immutable Implementation of Z9 ***********************/
class Z9Impl implements Z9 {
private final String str1Field;
private final String str2Field;
private final String str3Field;
private final String str4Field;
private final String str5Field;
private final String str6Field;
private final String str7Field;
private final String str8Field;
private final String str9Field;
protected Z9Impl(Z9.Z9Builder builder) {
this.str1Field = builder.getStr1Field();
this.str2Field = builder.getStr2Field();
this.str3Field = builder.getStr3Field();
this.str4Field = builder.getStr4Field();
this.str5Field = builder.getStr5Field();
this.str6Field = builder.getStr6Field();
this.str7Field = builder.getStr7Field();
this.str8Field = builder.getStr8Field();
this.str9Field = builder.getStr9Field();
}
@Override
@RosettaAttribute("str1Field")
public String getStr1Field() {
return str1Field;
}
@Override
@RosettaAttribute("str2Field")
public String getStr2Field() {
return str2Field;
}
@Override
@RosettaAttribute("str3Field")
public String getStr3Field() {
return str3Field;
}
@Override
@RosettaAttribute("str4Field")
public String getStr4Field() {
return str4Field;
}
@Override
@RosettaAttribute("str5Field")
public String getStr5Field() {
return str5Field;
}
@Override
@RosettaAttribute("str6Field")
public String getStr6Field() {
return str6Field;
}
@Override
@RosettaAttribute("str7Field")
public String getStr7Field() {
return str7Field;
}
@Override
@RosettaAttribute("str8Field")
public String getStr8Field() {
return str8Field;
}
@Override
@RosettaAttribute("str9Field")
public String getStr9Field() {
return str9Field;
}
@Override
public Z9 build() {
return this;
}
@Override
public Z9.Z9Builder toBuilder() {
Z9.Z9Builder builder = builder();
setBuilderFields(builder);
return builder;
}
protected void setBuilderFields(Z9.Z9Builder builder) {
ofNullable(getStr1Field()).ifPresent(builder::setStr1Field);
ofNullable(getStr2Field()).ifPresent(builder::setStr2Field);
ofNullable(getStr3Field()).ifPresent(builder::setStr3Field);
ofNullable(getStr4Field()).ifPresent(builder::setStr4Field);
ofNullable(getStr5Field()).ifPresent(builder::setStr5Field);
ofNullable(getStr6Field()).ifPresent(builder::setStr6Field);
ofNullable(getStr7Field()).ifPresent(builder::setStr7Field);
ofNullable(getStr8Field()).ifPresent(builder::setStr8Field);
ofNullable(getStr9Field()).ifPresent(builder::setStr9Field);
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || !(o instanceof RosettaModelObject) || !getType().equals(((RosettaModelObject)o).getType())) return false;
Z9 _that = getType().cast(o);
if (!Objects.equals(str1Field, _that.getStr1Field())) return false;
if (!Objects.equals(str2Field, _that.getStr2Field())) return false;
if (!Objects.equals(str3Field, _that.getStr3Field())) return false;
if (!Objects.equals(str4Field, _that.getStr4Field())) return false;
if (!Objects.equals(str5Field, _that.getStr5Field())) return false;
if (!Objects.equals(str6Field, _that.getStr6Field())) return false;
if (!Objects.equals(str7Field, _that.getStr7Field())) return false;
if (!Objects.equals(str8Field, _that.getStr8Field())) return false;
if (!Objects.equals(str9Field, _that.getStr9Field())) return false;
return true;
}
@Override
public int hashCode() {
int _result = 0;
_result = 31 * _result + (str1Field != null ? str1Field.hashCode() : 0);
_result = 31 * _result + (str2Field != null ? str2Field.hashCode() : 0);
_result = 31 * _result + (str3Field != null ? str3Field.hashCode() : 0);
_result = 31 * _result + (str4Field != null ? str4Field.hashCode() : 0);
_result = 31 * _result + (str5Field != null ? str5Field.hashCode() : 0);
_result = 31 * _result + (str6Field != null ? str6Field.hashCode() : 0);
_result = 31 * _result + (str7Field != null ? str7Field.hashCode() : 0);
_result = 31 * _result + (str8Field != null ? str8Field.hashCode() : 0);
_result = 31 * _result + (str9Field != null ? str9Field.hashCode() : 0);
return _result;
}
@Override
public String toString() {
return "Z9 {" +
"str1Field=" + this.str1Field + ", " +
"str2Field=" + this.str2Field + ", " +
"str3Field=" + this.str3Field + ", " +
"str4Field=" + this.str4Field + ", " +
"str5Field=" + this.str5Field + ", " +
"str6Field=" + this.str6Field + ", " +
"str7Field=" + this.str7Field + ", " +
"str8Field=" + this.str8Field + ", " +
"str9Field=" + this.str9Field +
'}';
}
}
/*********************** Builder Implementation of Z9 ***********************/
class Z9BuilderImpl implements Z9.Z9Builder {
protected String str1Field;
protected String str2Field;
protected String str3Field;
protected String str4Field;
protected String str5Field;
protected String str6Field;
protected String str7Field;
protected String str8Field;
protected String str9Field;
public Z9BuilderImpl() {
}
@Override
@RosettaAttribute("str1Field")
public String getStr1Field() {
return str1Field;
}
@Override
@RosettaAttribute("str2Field")
public String getStr2Field() {
return str2Field;
}
@Override
@RosettaAttribute("str3Field")
public String getStr3Field() {
return str3Field;
}
@Override
@RosettaAttribute("str4Field")
public String getStr4Field() {
return str4Field;
}
@Override
@RosettaAttribute("str5Field")
public String getStr5Field() {
return str5Field;
}
@Override
@RosettaAttribute("str6Field")
public String getStr6Field() {
return str6Field;
}
@Override
@RosettaAttribute("str7Field")
public String getStr7Field() {
return str7Field;
}
@Override
@RosettaAttribute("str8Field")
public String getStr8Field() {
return str8Field;
}
@Override
@RosettaAttribute("str9Field")
public String getStr9Field() {
return str9Field;
}
@Override
@RosettaAttribute("str1Field")
public Z9.Z9Builder setStr1Field(String str1Field) {
this.str1Field = str1Field==null?null:str1Field;
return this;
}
@Override
@RosettaAttribute("str2Field")
public Z9.Z9Builder setStr2Field(String str2Field) {
this.str2Field = str2Field==null?null:str2Field;
return this;
}
@Override
@RosettaAttribute("str3Field")
public Z9.Z9Builder setStr3Field(String str3Field) {
this.str3Field = str3Field==null?null:str3Field;
return this;
}
@Override
@RosettaAttribute("str4Field")
public Z9.Z9Builder setStr4Field(String str4Field) {
this.str4Field = str4Field==null?null:str4Field;
return this;
}
@Override
@RosettaAttribute("str5Field")
public Z9.Z9Builder setStr5Field(String str5Field) {
this.str5Field = str5Field==null?null:str5Field;
return this;
}
@Override
@RosettaAttribute("str6Field")
public Z9.Z9Builder setStr6Field(String str6Field) {
this.str6Field = str6Field==null?null:str6Field;
return this;
}
@Override
@RosettaAttribute("str7Field")
public Z9.Z9Builder setStr7Field(String str7Field) {
this.str7Field = str7Field==null?null:str7Field;
return this;
}
@Override
@RosettaAttribute("str8Field")
public Z9.Z9Builder setStr8Field(String str8Field) {
this.str8Field = str8Field==null?null:str8Field;
return this;
}
@Override
@RosettaAttribute("str9Field")
public Z9.Z9Builder setStr9Field(String str9Field) {
this.str9Field = str9Field==null?null:str9Field;
return this;
}
@Override
public Z9 build() {
return new Z9.Z9Impl(this);
}
@Override
public Z9.Z9Builder toBuilder() {
return this;
}
@SuppressWarnings("unchecked")
@Override
public Z9.Z9Builder prune() {
return this;
}
@Override
public boolean hasData() {
if (getStr1Field()!=null) return true;
if (getStr2Field()!=null) return true;
if (getStr3Field()!=null) return true;
if (getStr4Field()!=null) return true;
if (getStr5Field()!=null) return true;
if (getStr6Field()!=null) return true;
if (getStr7Field()!=null) return true;
if (getStr8Field()!=null) return true;
if (getStr9Field()!=null) return true;
return false;
}
@SuppressWarnings("unchecked")
@Override
public Z9.Z9Builder merge(RosettaModelObjectBuilder other, BuilderMerger merger) {
Z9.Z9Builder o = (Z9.Z9Builder) other;
merger.mergeBasic(getStr1Field(), o.getStr1Field(), this::setStr1Field);
merger.mergeBasic(getStr2Field(), o.getStr2Field(), this::setStr2Field);
merger.mergeBasic(getStr3Field(), o.getStr3Field(), this::setStr3Field);
merger.mergeBasic(getStr4Field(), o.getStr4Field(), this::setStr4Field);
merger.mergeBasic(getStr5Field(), o.getStr5Field(), this::setStr5Field);
merger.mergeBasic(getStr6Field(), o.getStr6Field(), this::setStr6Field);
merger.mergeBasic(getStr7Field(), o.getStr7Field(), this::setStr7Field);
merger.mergeBasic(getStr8Field(), o.getStr8Field(), this::setStr8Field);
merger.mergeBasic(getStr9Field(), o.getStr9Field(), this::setStr9Field);
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;
Z9 _that = getType().cast(o);
if (!Objects.equals(str1Field, _that.getStr1Field())) return false;
if (!Objects.equals(str2Field, _that.getStr2Field())) return false;
if (!Objects.equals(str3Field, _that.getStr3Field())) return false;
if (!Objects.equals(str4Field, _that.getStr4Field())) return false;
if (!Objects.equals(str5Field, _that.getStr5Field())) return false;
if (!Objects.equals(str6Field, _that.getStr6Field())) return false;
if (!Objects.equals(str7Field, _that.getStr7Field())) return false;
if (!Objects.equals(str8Field, _that.getStr8Field())) return false;
if (!Objects.equals(str9Field, _that.getStr9Field())) return false;
return true;
}
@Override
public int hashCode() {
int _result = 0;
_result = 31 * _result + (str1Field != null ? str1Field.hashCode() : 0);
_result = 31 * _result + (str2Field != null ? str2Field.hashCode() : 0);
_result = 31 * _result + (str3Field != null ? str3Field.hashCode() : 0);
_result = 31 * _result + (str4Field != null ? str4Field.hashCode() : 0);
_result = 31 * _result + (str5Field != null ? str5Field.hashCode() : 0);
_result = 31 * _result + (str6Field != null ? str6Field.hashCode() : 0);
_result = 31 * _result + (str7Field != null ? str7Field.hashCode() : 0);
_result = 31 * _result + (str8Field != null ? str8Field.hashCode() : 0);
_result = 31 * _result + (str9Field != null ? str9Field.hashCode() : 0);
return _result;
}
@Override
public String toString() {
return "Z9Builder {" +
"str1Field=" + this.str1Field + ", " +
"str2Field=" + this.str2Field + ", " +
"str3Field=" + this.str3Field + ", " +
"str4Field=" + this.str4Field + ", " +
"str5Field=" + this.str5Field + ", " +
"str6Field=" + this.str6Field + ", " +
"str7Field=" + this.str7Field + ", " +
"str8Field=" + this.str8Field + ", " +
"str9Field=" + this.str9Field +
'}';
}
}
}