no.ks.fiks.innsyn.schema.ekstern.domain.FakturaBelopV1 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of innsyn-json-schema Show documentation
Show all versions of innsyn-json-schema Show documentation
JSON schema-modeller for indeksering mot Fiks Innsyn
package no.ks.fiks.innsyn.schema.ekstern.domain;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* Beløp i norske kroner, oppgitt i kroner og øre
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"kroner",
"ore"
})
public class FakturaBelopV1 {
/**
*
* (Required)
*
*/
@JsonProperty("kroner")
private Integer kroner;
/**
*
* (Required)
*
*/
@JsonProperty("ore")
private Integer ore;
/**
*
* (Required)
*
*/
@JsonProperty("kroner")
public Integer getKroner() {
return kroner;
}
/**
*
* (Required)
*
*/
@JsonProperty("kroner")
public void setKroner(Integer kroner) {
this.kroner = kroner;
}
public FakturaBelopV1 withKroner(Integer kroner) {
this.kroner = kroner;
return this;
}
/**
*
* (Required)
*
*/
@JsonProperty("ore")
public Integer getOre() {
return ore;
}
/**
*
* (Required)
*
*/
@JsonProperty("ore")
public void setOre(Integer ore) {
this.ore = ore;
}
public FakturaBelopV1 withOre(Integer ore) {
this.ore = ore;
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(FakturaBelopV1 .class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
sb.append("kroner");
sb.append('=');
sb.append(((this.kroner == null)?"":this.kroner));
sb.append(',');
sb.append("ore");
sb.append('=');
sb.append(((this.ore == null)?"":this.ore));
sb.append(',');
if (sb.charAt((sb.length()- 1)) == ',') {
sb.setCharAt((sb.length()- 1), ']');
} else {
sb.append(']');
}
return sb.toString();
}
@Override
public int hashCode() {
int result = 1;
result = ((result* 31)+((this.kroner == null)? 0 :this.kroner.hashCode()));
result = ((result* 31)+((this.ore == null)? 0 :this.ore.hashCode()));
return result;
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof FakturaBelopV1) == false) {
return false;
}
FakturaBelopV1 rhs = ((FakturaBelopV1) other);
return (((this.kroner == rhs.kroner)||((this.kroner!= null)&&this.kroner.equals(rhs.kroner)))&&((this.ore == rhs.ore)||((this.ore!= null)&&this.ore.equals(rhs.ore))));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy