MCPcopy Create free account
hub / github.com/PCGen/pcgen / overlayCDOMObject

Method overlayCDOMObject

code/src/java/pcgen/cdom/base/CDOMObject.java:949–1032  ·  view source on GitHub ↗
(CDOMObject cdo)

Source from the content-addressed store, hash-verified

947 }
948
949 public final void overlayCDOMObject(CDOMObject cdo)
950 {
951 addAllPrerequisites(cdo.getPrerequisiteList());
952 if (cdo.integerChar != null)
953 {
954 if (integerChar == null)
955 {
956 integerChar = new HashMap<>();
957 }
958 integerChar.putAll(cdo.integerChar);
959 }
960 if (cdo.stringChar != null)
961 {
962 if (stringChar == null)
963 {
964 stringChar = new EnumMap<>(StringKey.class);
965 }
966 stringChar.putAll(cdo.stringChar);
967 }
968 if (cdo.formulaChar != null)
969 {
970 if (formulaChar == null)
971 {
972 formulaChar = new HashMap<>();
973 }
974 formulaChar.putAll(cdo.formulaChar);
975 }
976 if (cdo.objectChar != null)
977 {
978 if (objectChar == null)
979 {
980 objectChar = new HashMap<>();
981 }
982 objectChar.putAll(cdo.objectChar);
983 }
984 if (cdo.factChar != null)
985 {
986 if (factChar == null)
987 {
988 factChar = new HashMap<>();
989 }
990 factChar.putAll(cdo.factChar);
991 }
992 if (cdo.variableChar != null)
993 {
994 if (variableChar == null)
995 {
996 variableChar = new HashMap<>();
997 }
998 variableChar.putAll(cdo.variableChar);
999 }
1000 if (cdo.listChar != null)
1001 {
1002 if (listChar == null)
1003 {
1004 listChar = new ListKeyMapToList();
1005 }
1006 listChar.addAllLists(cdo.listChar);

Callers 2

cloneMethod · 0.80

Calls 5

addAllPrerequisitesMethod · 0.65
getPrerequisiteListMethod · 0.65
addAllListsMethod · 0.65
addAllMethod · 0.65
putAllMethod · 0.45

Tested by

no test coverage detected