-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
6523 Konverter pakke producers.model til kotlin (#692)
- Loading branch information
Showing
17 changed files
with
127 additions
and
1,137 deletions.
There are no files selected for viewing
181 changes: 20 additions & 161 deletions
181
melosys-eessi-app/src/main/java/no/nav/melosys/eessi/kafka/producers/model/Adresse.kt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,162 +1,21 @@ | ||
// Generated by delombok at Thu Jul 04 12:27:09 CEST 2024 | ||
package no.nav.melosys.eessi.kafka.producers.model; | ||
|
||
public class Adresse { | ||
private String by; | ||
private String bygning; | ||
private String gate; | ||
private String land; | ||
private String postnummer; | ||
private String region; | ||
private String type; | ||
|
||
public Adresse(no.nav.melosys.eessi.models.sed.nav.Adresse adresse) { | ||
this(adresse.getBy(), adresse.getBygning(), adresse.getGate(), adresse.getLand(), adresse.getPostnummer(), adresse.getRegion(), adresse.getType()); | ||
} | ||
|
||
@java.lang.SuppressWarnings("all") | ||
public String getBy() { | ||
return this.by; | ||
} | ||
|
||
@java.lang.SuppressWarnings("all") | ||
public String getBygning() { | ||
return this.bygning; | ||
} | ||
|
||
@java.lang.SuppressWarnings("all") | ||
public String getGate() { | ||
return this.gate; | ||
} | ||
|
||
@java.lang.SuppressWarnings("all") | ||
public String getLand() { | ||
return this.land; | ||
} | ||
|
||
@java.lang.SuppressWarnings("all") | ||
public String getPostnummer() { | ||
return this.postnummer; | ||
} | ||
|
||
@java.lang.SuppressWarnings("all") | ||
public String getRegion() { | ||
return this.region; | ||
} | ||
|
||
@java.lang.SuppressWarnings("all") | ||
public String getType() { | ||
return this.type; | ||
} | ||
|
||
@java.lang.SuppressWarnings("all") | ||
public void setBy(final String by) { | ||
this.by = by; | ||
} | ||
|
||
@java.lang.SuppressWarnings("all") | ||
public void setBygning(final String bygning) { | ||
this.bygning = bygning; | ||
} | ||
|
||
@java.lang.SuppressWarnings("all") | ||
public void setGate(final String gate) { | ||
this.gate = gate; | ||
} | ||
|
||
@java.lang.SuppressWarnings("all") | ||
public void setLand(final String land) { | ||
this.land = land; | ||
} | ||
|
||
@java.lang.SuppressWarnings("all") | ||
public void setPostnummer(final String postnummer) { | ||
this.postnummer = postnummer; | ||
} | ||
|
||
@java.lang.SuppressWarnings("all") | ||
public void setRegion(final String region) { | ||
this.region = region; | ||
} | ||
|
||
@java.lang.SuppressWarnings("all") | ||
public void setType(final String type) { | ||
this.type = type; | ||
} | ||
|
||
@java.lang.Override | ||
@java.lang.SuppressWarnings("all") | ||
public boolean equals(final java.lang.Object o) { | ||
if (o == this) return true; | ||
if (!(o instanceof Adresse)) return false; | ||
final Adresse other = (Adresse) o; | ||
if (!other.canEqual((java.lang.Object) this)) return false; | ||
final java.lang.Object this$by = this.getBy(); | ||
final java.lang.Object other$by = other.getBy(); | ||
if (this$by == null ? other$by != null : !this$by.equals(other$by)) return false; | ||
final java.lang.Object this$bygning = this.getBygning(); | ||
final java.lang.Object other$bygning = other.getBygning(); | ||
if (this$bygning == null ? other$bygning != null : !this$bygning.equals(other$bygning)) return false; | ||
final java.lang.Object this$gate = this.getGate(); | ||
final java.lang.Object other$gate = other.getGate(); | ||
if (this$gate == null ? other$gate != null : !this$gate.equals(other$gate)) return false; | ||
final java.lang.Object this$land = this.getLand(); | ||
final java.lang.Object other$land = other.getLand(); | ||
if (this$land == null ? other$land != null : !this$land.equals(other$land)) return false; | ||
final java.lang.Object this$postnummer = this.getPostnummer(); | ||
final java.lang.Object other$postnummer = other.getPostnummer(); | ||
if (this$postnummer == null ? other$postnummer != null : !this$postnummer.equals(other$postnummer)) | ||
return false; | ||
final java.lang.Object this$region = this.getRegion(); | ||
final java.lang.Object other$region = other.getRegion(); | ||
if (this$region == null ? other$region != null : !this$region.equals(other$region)) return false; | ||
final java.lang.Object this$type = this.getType(); | ||
final java.lang.Object other$type = other.getType(); | ||
if (this$type == null ? other$type != null : !this$type.equals(other$type)) return false; | ||
return true; | ||
} | ||
|
||
@java.lang.SuppressWarnings("all") | ||
protected boolean canEqual(final java.lang.Object other) { | ||
return other instanceof Adresse; | ||
} | ||
|
||
@java.lang.Override | ||
@java.lang.SuppressWarnings("all") | ||
public int hashCode() { | ||
final int PRIME = 59; | ||
int result = 1; | ||
final java.lang.Object $by = this.getBy(); | ||
result = result * PRIME + ($by == null ? 43 : $by.hashCode()); | ||
final java.lang.Object $bygning = this.getBygning(); | ||
result = result * PRIME + ($bygning == null ? 43 : $bygning.hashCode()); | ||
final java.lang.Object $gate = this.getGate(); | ||
result = result * PRIME + ($gate == null ? 43 : $gate.hashCode()); | ||
final java.lang.Object $land = this.getLand(); | ||
result = result * PRIME + ($land == null ? 43 : $land.hashCode()); | ||
final java.lang.Object $postnummer = this.getPostnummer(); | ||
result = result * PRIME + ($postnummer == null ? 43 : $postnummer.hashCode()); | ||
final java.lang.Object $region = this.getRegion(); | ||
result = result * PRIME + ($region == null ? 43 : $region.hashCode()); | ||
final java.lang.Object $type = this.getType(); | ||
result = result * PRIME + ($type == null ? 43 : $type.hashCode()); | ||
return result; | ||
} | ||
|
||
@java.lang.Override | ||
@java.lang.SuppressWarnings("all") | ||
public java.lang.String toString() { | ||
return "Adresse(by=" + this.getBy() + ", bygning=" + this.getBygning() + ", gate=" + this.getGate() + ", land=" + this.getLand() + ", postnummer=" + this.getPostnummer() + ", region=" + this.getRegion() + ", type=" + this.getType() + ")"; | ||
} | ||
|
||
@java.lang.SuppressWarnings("all") | ||
public Adresse(final String by, final String bygning, final String gate, final String land, final String postnummer, final String region, final String type) { | ||
this.by = by; | ||
this.bygning = bygning; | ||
this.gate = gate; | ||
this.land = land; | ||
this.postnummer = postnummer; | ||
this.region = region; | ||
this.type = type; | ||
} | ||
package no.nav.melosys.eessi.kafka.producers.model | ||
|
||
data class Adresse( | ||
var by: String?, | ||
var bygning: String?, | ||
var gate: String?, | ||
var land: String?, | ||
var postnummer: String?, | ||
var region: String?, | ||
var type: String? | ||
) { | ||
constructor(adresse: no.nav.melosys.eessi.models.sed.nav.Adresse) : this( | ||
adresse.by, | ||
adresse.bygning, | ||
adresse.gate, | ||
adresse.land, | ||
adresse.postnummer, | ||
adresse.region, | ||
adresse.type | ||
) | ||
} |
76 changes: 5 additions & 71 deletions
76
...sys-eessi-app/src/main/java/no/nav/melosys/eessi/kafka/producers/model/AnmodningUnntak.kt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,72 +1,6 @@ | ||
// Generated by delombok at Thu Jul 04 12:27:09 CEST 2024 | ||
package no.nav.melosys.eessi.kafka.producers.model; | ||
package no.nav.melosys.eessi.kafka.producers.model | ||
|
||
public class AnmodningUnntak { | ||
private String unntakFraLovvalgsland; | ||
private String unntakFraLovvalgsbestemmelse; | ||
|
||
@java.lang.SuppressWarnings("all") | ||
public AnmodningUnntak() { | ||
} | ||
|
||
@java.lang.SuppressWarnings("all") | ||
public String getUnntakFraLovvalgsland() { | ||
return this.unntakFraLovvalgsland; | ||
} | ||
|
||
@java.lang.SuppressWarnings("all") | ||
public String getUnntakFraLovvalgsbestemmelse() { | ||
return this.unntakFraLovvalgsbestemmelse; | ||
} | ||
|
||
@java.lang.SuppressWarnings("all") | ||
public void setUnntakFraLovvalgsland(final String unntakFraLovvalgsland) { | ||
this.unntakFraLovvalgsland = unntakFraLovvalgsland; | ||
} | ||
|
||
@java.lang.SuppressWarnings("all") | ||
public void setUnntakFraLovvalgsbestemmelse(final String unntakFraLovvalgsbestemmelse) { | ||
this.unntakFraLovvalgsbestemmelse = unntakFraLovvalgsbestemmelse; | ||
} | ||
|
||
@java.lang.Override | ||
@java.lang.SuppressWarnings("all") | ||
public boolean equals(final java.lang.Object o) { | ||
if (o == this) return true; | ||
if (!(o instanceof AnmodningUnntak)) return false; | ||
final AnmodningUnntak other = (AnmodningUnntak) o; | ||
if (!other.canEqual((java.lang.Object) this)) return false; | ||
final java.lang.Object this$unntakFraLovvalgsland = this.getUnntakFraLovvalgsland(); | ||
final java.lang.Object other$unntakFraLovvalgsland = other.getUnntakFraLovvalgsland(); | ||
if (this$unntakFraLovvalgsland == null ? other$unntakFraLovvalgsland != null : !this$unntakFraLovvalgsland.equals(other$unntakFraLovvalgsland)) | ||
return false; | ||
final java.lang.Object this$unntakFraLovvalgsbestemmelse = this.getUnntakFraLovvalgsbestemmelse(); | ||
final java.lang.Object other$unntakFraLovvalgsbestemmelse = other.getUnntakFraLovvalgsbestemmelse(); | ||
if (this$unntakFraLovvalgsbestemmelse == null ? other$unntakFraLovvalgsbestemmelse != null : !this$unntakFraLovvalgsbestemmelse.equals(other$unntakFraLovvalgsbestemmelse)) | ||
return false; | ||
return true; | ||
} | ||
|
||
@java.lang.SuppressWarnings("all") | ||
protected boolean canEqual(final java.lang.Object other) { | ||
return other instanceof AnmodningUnntak; | ||
} | ||
|
||
@java.lang.Override | ||
@java.lang.SuppressWarnings("all") | ||
public int hashCode() { | ||
final int PRIME = 59; | ||
int result = 1; | ||
final java.lang.Object $unntakFraLovvalgsland = this.getUnntakFraLovvalgsland(); | ||
result = result * PRIME + ($unntakFraLovvalgsland == null ? 43 : $unntakFraLovvalgsland.hashCode()); | ||
final java.lang.Object $unntakFraLovvalgsbestemmelse = this.getUnntakFraLovvalgsbestemmelse(); | ||
result = result * PRIME + ($unntakFraLovvalgsbestemmelse == null ? 43 : $unntakFraLovvalgsbestemmelse.hashCode()); | ||
return result; | ||
} | ||
|
||
@java.lang.Override | ||
@java.lang.SuppressWarnings("all") | ||
public java.lang.String toString() { | ||
return "AnmodningUnntak(unntakFraLovvalgsland=" + this.getUnntakFraLovvalgsland() + ", unntakFraLovvalgsbestemmelse=" + this.getUnntakFraLovvalgsbestemmelse() + ")"; | ||
} | ||
} | ||
data class AnmodningUnntak( | ||
var unntakFraLovvalgsland: String? = null, | ||
var unntakFraLovvalgsbestemmelse: String? = null | ||
) |
88 changes: 10 additions & 78 deletions
88
melosys-eessi-app/src/main/java/no/nav/melosys/eessi/kafka/producers/model/Arbeidsland.kt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,79 +1,11 @@ | ||
// Generated by delombok at Thu Jul 04 12:27:09 CEST 2024 | ||
package no.nav.melosys.eessi.kafka.producers.model; | ||
|
||
import java.util.List; | ||
|
||
public class Arbeidsland { | ||
private String land; | ||
private List<Arbeidssted> arbeidssted; | ||
|
||
public Arbeidsland(no.nav.melosys.eessi.models.sed.nav.Arbeidsland arbeidsland) { | ||
this(arbeidsland.getLand(), arbeidsland.getArbeidssted().stream().map(Arbeidssted::new).toList()); | ||
} | ||
|
||
@java.lang.SuppressWarnings("all") | ||
public String getLand() { | ||
return this.land; | ||
} | ||
|
||
@java.lang.SuppressWarnings("all") | ||
public List<Arbeidssted> getArbeidssted() { | ||
return this.arbeidssted; | ||
} | ||
|
||
@java.lang.SuppressWarnings("all") | ||
public void setLand(final String land) { | ||
this.land = land; | ||
} | ||
|
||
@java.lang.SuppressWarnings("all") | ||
public void setArbeidssted(final List<Arbeidssted> arbeidssted) { | ||
this.arbeidssted = arbeidssted; | ||
} | ||
|
||
@java.lang.Override | ||
@java.lang.SuppressWarnings("all") | ||
public boolean equals(final java.lang.Object o) { | ||
if (o == this) return true; | ||
if (!(o instanceof Arbeidsland)) return false; | ||
final Arbeidsland other = (Arbeidsland) o; | ||
if (!other.canEqual((java.lang.Object) this)) return false; | ||
final java.lang.Object this$land = this.getLand(); | ||
final java.lang.Object other$land = other.getLand(); | ||
if (this$land == null ? other$land != null : !this$land.equals(other$land)) return false; | ||
final java.lang.Object this$arbeidssted = this.getArbeidssted(); | ||
final java.lang.Object other$arbeidssted = other.getArbeidssted(); | ||
if (this$arbeidssted == null ? other$arbeidssted != null : !this$arbeidssted.equals(other$arbeidssted)) | ||
return false; | ||
return true; | ||
} | ||
|
||
@java.lang.SuppressWarnings("all") | ||
protected boolean canEqual(final java.lang.Object other) { | ||
return other instanceof Arbeidsland; | ||
} | ||
|
||
@java.lang.Override | ||
@java.lang.SuppressWarnings("all") | ||
public int hashCode() { | ||
final int PRIME = 59; | ||
int result = 1; | ||
final java.lang.Object $land = this.getLand(); | ||
result = result * PRIME + ($land == null ? 43 : $land.hashCode()); | ||
final java.lang.Object $arbeidssted = this.getArbeidssted(); | ||
result = result * PRIME + ($arbeidssted == null ? 43 : $arbeidssted.hashCode()); | ||
return result; | ||
} | ||
|
||
@java.lang.Override | ||
@java.lang.SuppressWarnings("all") | ||
public java.lang.String toString() { | ||
return "Arbeidsland(land=" + this.getLand() + ", arbeidssted=" + this.getArbeidssted() + ")"; | ||
} | ||
|
||
@java.lang.SuppressWarnings("all") | ||
public Arbeidsland(final String land, final List<Arbeidssted> arbeidssted) { | ||
this.land = land; | ||
this.arbeidssted = arbeidssted; | ||
} | ||
package no.nav.melosys.eessi.kafka.producers.model | ||
|
||
data class Arbeidsland( | ||
var land: String?, | ||
var arbeidssted: List<Arbeidssted> | ||
) { | ||
constructor(arbeidsland: no.nav.melosys.eessi.models.sed.nav.Arbeidsland) : this( | ||
arbeidsland.land, | ||
arbeidsland.arbeidssted!!.map { Arbeidssted(it) } | ||
) | ||
} |
Oops, something went wrong.