Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typedefinert felt map #1194

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Typedefinert felt map #1194

wants to merge 3 commits into from

Conversation

fredrikmork
Copy link
Contributor

Slipper å bruke:

Map<String, Any>
Map<String, *>
List<*>
List<Map<String, *>>

og mye annet mindre leselig

@fredrikmork fredrikmork requested a review from a team as a code owner December 19, 2024 11:59
Copy link
Contributor

@charliemidtlyng charliemidtlyng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ser jo bedre ut med FeltMap enn Map<String, Any> 💪

Antar at dette er bakoverkompatibelt også..? Isåfall tommel opp herfra!

//skal ekskluderes
if (list.size == 1 && (list[0] as Map<*, *>).isEmpty()) {
// skal ekskluderes
if (list.singleOrNull()?.verdiliste?.isEmpty() == true) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blir denne riktig nå..? 👀

val list = listOf(Feltformaterer.genereltFormatMapperMapEndenode(entitet.verdi.harSendtInnTidligere))
if (list.size == 1 && (list[0] as Map<*, *>).isEmpty()) {
if (list.singleOrNull()?.verdiliste?.isEmpty() == true) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Samme som over

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants