コード例 #1
0
 @Override
 public void merge(Mapper mergeWith, MergeContext mergeContext) throws MergeMappingException {
   super.merge(mergeWith, mergeContext);
   if (!this.getClass().equals(mergeWith.getClass())) {
     return;
   }
   if (!mergeContext.mergeFlags().simulate()) {
     this.nullValue = ((IntegerFieldMapper) mergeWith).nullValue;
     this.nullValueAsString = ((IntegerFieldMapper) mergeWith).nullValueAsString;
   }
 }
コード例 #2
0
 @Override
 public void merge(Mapper mergeWith, MergeContext mergeContext) throws MergeMappingException {
   super.merge(mergeWith, mergeContext);
   if (!this.getClass().equals(mergeWith.getClass())) {
     return;
   }
   if (!mergeContext.mergeFlags().simulate()) {
     this.nullValue = ((DateFieldMapper) mergeWith).nullValue;
     this.dateTimeFormatter = ((DateFieldMapper) mergeWith).dateTimeFormatter;
   }
 }