Created
August 6, 2019 21:57
-
-
Save rajcspsg/c3f431ae54b04f01cd2a3861f13daf74 to your computer and use it in GitHub Desktop.
Generated sample Java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.technorati.openrtb.model; | |
import com.fasterxml.jackson.annotation.JsonInclude; | |
import com.fasterxml.jackson.annotation.JsonProperty; | |
import com.fasterxml.jackson.annotation.JsonPropertyOrder; | |
import com.fasterxml.jackson.annotation.JsonInclude.Include; | |
import org.apache.commons.lang.builder.EqualsBuilder; | |
import org.apache.commons.lang.builder.HashCodeBuilder; | |
import org.apache.commons.lang.builder.ToStringBuilder; | |
@JsonInclude(Include.NON_NULL) | |
@JsonPropertyOrder({"coppa", "ext"}) | |
public class Regs { | |
@JsonProperty("coppa") | |
private Integer coppa; | |
@JsonProperty("ext") | |
private Ext____________________ ext; | |
public Regs() { | |
} | |
@JsonProperty("coppa") | |
public Integer getCoppa() { | |
return this.coppa; | |
} | |
@JsonProperty("coppa") | |
public void setCoppa(Integer coppa) { | |
this.coppa = coppa; | |
} | |
@JsonProperty("ext") | |
public Ext____________________ getExt() { | |
return this.ext; | |
} | |
@JsonProperty("ext") | |
public void setExt(Ext____________________ ext) { | |
this.ext = ext; | |
} | |
public String toString() { | |
return (new ToStringBuilder(this)).append("coppa", this.coppa).append("ext", this.ext).toString(); | |
} | |
public int hashCode() { | |
return (new HashCodeBuilder()).append(this.ext).append(this.coppa).toHashCode(); | |
} | |
public boolean equals(Object other) { | |
if (other == this) { | |
return true; | |
} else if (!(other instanceof Regs)) { | |
return false; | |
} else { | |
Regs rhs = (Regs)other; | |
return (new EqualsBuilder()).append(this.ext, rhs.ext).append(this.coppa, rhs.coppa).isEquals(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment