1 30 package com.genimen.djeneric.structure; 31 32 import java.util.Comparator ; 33 34 public class PropertyUsageComparator implements Comparator  35 { 36 public int compare(Object o1, Object o2) 37 { 38 if (!(o1 instanceof PropertyUsage) || !(o2 instanceof PropertyUsage)) return -1; 39 PropertyUsage cu1 = (PropertyUsage) o1; 40 PropertyUsage cu2 = (PropertyUsage) o2; 41 return cu1.getSeq() - cu2.getSeq(); 42 } 43 } | Popular Tags |