diff options
Diffstat (limited to 'src/Chapter5/support/NodeSizeComparator.java')
-rw-r--r-- | src/Chapter5/support/NodeSizeComparator.java | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/Chapter5/support/NodeSizeComparator.java b/src/Chapter5/support/NodeSizeComparator.java deleted file mode 100644 index 23ecb4e..0000000 --- a/src/Chapter5/support/NodeSizeComparator.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * To change this template, choose Tools | Templates - * and open the template in the editor. - */ - -package Chapter5.support; -import java.util.Comparator; - -/** - * - * @author shamanth - */ -public class NodeSizeComparator implements Comparator -{ - public int compare(Object o1, Object o2) - { - int size1 = ((NetworkNode) o1).size; - int size2 = ((NetworkNode) o2).size; - if(size1>size2) - { - return 1; - } - if(size1<size2) - return -1; - else - return 0; - } - -} |