@Override public ObjectMapper merge(Mapper mergeWith, boolean updateAllTypes) { if (!(mergeWith instanceof ObjectMapper)) { throw new IllegalArgumentException("Can't merge a non object mapping [" + mergeWith.name() + "] with an object mapping [" + name() + "]"); } ObjectMapper mergeWithObject = (ObjectMapper) mergeWith; ObjectMapper merged = clone(); merged.doMerge(mergeWithObject, updateAllTypes); return merged; }
@Override protected void doMerge(ObjectMapper mergeWith, boolean updateAllTypes) { super.doMerge(mergeWith, updateAllTypes); RootObjectMapper mergeWithObject = (RootObjectMapper) mergeWith; if (mergeWithObject.numericDetection.explicit()) { this.numericDetection = mergeWithObject.numericDetection; } if (mergeWithObject.dateDetection.explicit()) { this.dateDetection = mergeWithObject.dateDetection; } if (mergeWithObject.dynamicDateTimeFormatters.explicit()) { this.dynamicDateTimeFormatters = mergeWithObject.dynamicDateTimeFormatters; } if (mergeWithObject.dynamicTemplates.explicit()) { this.dynamicTemplates = mergeWithObject.dynamicTemplates; } }
@Override public ObjectMapper merge(Mapper mergeWith, boolean updateAllTypes) { if (!(mergeWith instanceof ObjectMapper)) { throw new IllegalArgumentException("Can't merge a non object mapping [" + mergeWith.name() + "] with an object mapping [" + name() + "]"); } ObjectMapper mergeWithObject = (ObjectMapper) mergeWith; ObjectMapper merged = clone(); merged.doMerge(mergeWithObject, updateAllTypes); return merged; }
@Override public ObjectMapper merge(Mapper mergeWith, boolean updateAllTypes) { if (!(mergeWith instanceof ObjectMapper)) { throw new IllegalArgumentException("Can't merge a non object mapping [" + mergeWith.name() + "] with an object mapping [" + name() + "]"); } ObjectMapper mergeWithObject = (ObjectMapper) mergeWith; ObjectMapper merged = clone(); merged.doMerge(mergeWithObject, updateAllTypes); return merged; }
@Override public ObjectMapper merge(Mapper mergeWith, boolean updateAllTypes) { if (!(mergeWith instanceof ObjectMapper)) { throw new IllegalArgumentException("Can't merge a non object mapping [" + mergeWith.name() + "] with an object mapping [" + name() + "]"); } ObjectMapper mergeWithObject = (ObjectMapper) mergeWith; ObjectMapper merged = clone(); merged.doMerge(mergeWithObject, updateAllTypes); return merged; }
@Override protected void doMerge(ObjectMapper mergeWith, boolean updateAllTypes) { super.doMerge(mergeWith, updateAllTypes); RootObjectMapper mergeWithObject = (RootObjectMapper) mergeWith; if (mergeWithObject.numericDetection.explicit()) { this.numericDetection = mergeWithObject.numericDetection; } if (mergeWithObject.dateDetection.explicit()) { this.dateDetection = mergeWithObject.dateDetection; } if (mergeWithObject.dynamicDateTimeFormatters.explicit()) { this.dynamicDateTimeFormatters = mergeWithObject.dynamicDateTimeFormatters; } if (mergeWithObject.dynamicTemplates.explicit()) { this.dynamicTemplates = mergeWithObject.dynamicTemplates; } }
@Override protected void doMerge(ObjectMapper mergeWith, boolean updateAllTypes) { super.doMerge(mergeWith, updateAllTypes); RootObjectMapper mergeWithObject = (RootObjectMapper) mergeWith; if (mergeWithObject.numericDetection.explicit()) { this.numericDetection = mergeWithObject.numericDetection; } if (mergeWithObject.dateDetection.explicit()) { this.dateDetection = mergeWithObject.dateDetection; } if (mergeWithObject.dynamicDateTimeFormatters.explicit()) { this.dynamicDateTimeFormatters = mergeWithObject.dynamicDateTimeFormatters; } if (mergeWithObject.dynamicTemplates.explicit()) { this.dynamicTemplates = mergeWithObject.dynamicTemplates; } }
@Override protected void doMerge(ObjectMapper mergeWith, boolean updateAllTypes) { super.doMerge(mergeWith, updateAllTypes); RootObjectMapper mergeWithObject = (RootObjectMapper) mergeWith; if (mergeWithObject.numericDetection.explicit()) { this.numericDetection = mergeWithObject.numericDetection; } if (mergeWithObject.dateDetection.explicit()) { this.dateDetection = mergeWithObject.dateDetection; } if (mergeWithObject.dynamicDateTimeFormatters.explicit()) { this.dynamicDateTimeFormatters = mergeWithObject.dynamicDateTimeFormatters; } if (mergeWithObject.dynamicTemplates.explicit()) { this.dynamicTemplates = mergeWithObject.dynamicTemplates; } }