uk.ac.ebi.intenz.webapp.utilities
Class SizeComparator

java.lang.Object
  extended by uk.ac.ebi.intenz.webapp.utilities.SizeComparator
All Implemented Interfaces:
Comparator<Object>

public class SizeComparator
extends Object
implements Comparator<Object>

Compares two objects' size. If any of them is not a Collection or Map, its size is considered as 0.

Author:
rafalcan

Constructor Summary
SizeComparator()
           
 
Method Summary
 int compare(Object o1, Object o2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

SizeComparator

public SizeComparator()
Method Detail

compare

public int compare(Object o1,
                   Object o2)
Specified by:
compare in interface Comparator<Object>


Copyright © 2013 EMBL-EBI. All Rights Reserved.