1 21 package oracle.toplink.essentials.internal.helper; 23 24 import oracle.toplink.essentials.mappings.DatabaseMapping; 25 26 33 public class MappingCompare implements TOPComparison { 34 public int compare(Object arg1, Object arg2) { 35 int arg1Value = ((DatabaseMapping)arg1).getWeight().intValue(); 36 int arg2Value = ((DatabaseMapping)arg2).getWeight().intValue(); 37 return (arg1Value - arg2Value); 38 } 39 } 40 | Popular Tags |