Jakub Aniola
11/23/2018, 11:33 AMigor.wojda
11/23/2018, 11:38 AMval cp = a.copy(weight = 12) //this of course will change hash code
I am not sure how this refers to Cloneable
however I know that this is not a deep copy (so if there is an object in data class only reference will be copied to new data class, so original and copy would have reference the same object stored internally)Reinis
11/23/2018, 11:38 AMigor.wojda
11/23/2018, 11:39 AMsindrenm
11/23/2018, 11:46 AMcopy()
, it operates on the primary constructor properties only.sindrenm
11/23/2018, 11:47 AMequals
, hashCode
, componentX
, everything.bigkahuna
11/23/2018, 11:48 AMPaul Woitaschek
11/23/2018, 12:53 PMPaul Woitaschek
11/23/2018, 12:53 PM