uk.ac.ebi.intenz.webapp.utilities
Class SizeComparator
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SizeComparator
public SizeComparator()
compare
public int compare(Object o1,
Object o2)
- Specified by:
compare
in interface Comparator<Object>
Copyright © 2013 EMBL-EBI. All Rights Reserved.