Example #1
0
 private <P, R> R process(
     ProcessorContext context,
     ModelElementProcessor<P, R> processor,
     TypeElement mapperTypeElement,
     Object modelElement) {
   @SuppressWarnings("unchecked")
   P sourceElement = (P) modelElement;
   return processor.process(context, mapperTypeElement, sourceElement);
 }
Example #2
0
 @Override
 public int compare(ModelElementProcessor<?, ?> o1, ModelElementProcessor<?, ?> o2) {
   return o1.getPriority() < o2.getPriority()
       ? -1
       : o1.getPriority() == o2.getPriority() ? 0 : 1;
 }