mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-19 21:50:45 +00:00
CE-781 Add cases for LinkedHashMap and HashMap in deepCopySimpleMap
This commit is contained in:
@ -167,6 +167,16 @@ public class QRecord implements Serializable
|
||||
ArrayList<?> cloneList = new ArrayList<>(arrayList);
|
||||
clone.put(entry.getKey(), (V) cloneList);
|
||||
}
|
||||
else if(entry.getValue() instanceof LinkedHashMap<?, ?> linkedHashMap)
|
||||
{
|
||||
LinkedHashMap<?, ?> cloneMap = new LinkedHashMap<>(linkedHashMap);
|
||||
clone.put(entry.getKey(), (V) cloneMap);
|
||||
}
|
||||
else if(entry.getValue() instanceof HashMap<?, ?> hashMap)
|
||||
{
|
||||
HashMap<?, ?> cloneMap = new HashMap<>(hashMap);
|
||||
clone.put(entry.getKey(), (V) cloneMap);
|
||||
}
|
||||
else if(entry.getValue() instanceof QRecord otherQRecord)
|
||||
{
|
||||
clone.put(entry.getKey(), (V) new QRecord(otherQRecord));
|
||||
|
Reference in New Issue
Block a user