scala - value is not a member of Equals -


i'm trying add object list (third list), i'm using code

    var okii = result.firstlist.find(dimension => firstobj.rank == firstobjrank).map(_.secondlist).getorelse(seq.empty).find(secondobj => secondobj.rank == secondobjrank).getorelse(seq.empty)     okii.thirdlist :+ newobj 

but error:

value not member of equals

my structure:

"result" : {     "firstlist": [{         "firstobject": "objectfirstlist"     }, {         "secondlist": [{                 "secondobject": "objectsecondlist"             },             "thirdlist": [{                 "thirdobject": "objectthirdlist"             }]         ]     }] } 


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -