org.squashtest.csp.tm.domain
Class LevelComparator
java.lang.Object
org.squashtest.csp.tm.domain.LevelComparator
- All Implemented Interfaces:
- Serializable, Comparator<Level>
public final class LevelComparator
- extends Object
- implements Comparator<Level>, Serializable
Compares 2 Level using their Level.getLevel() property. The smaller the level, the higher the
importance.
- Author:
- Gregory Fouquet
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
compare
public int compare(Level o1,
Level o2)
- (non-Javadoc)
- Specified by:
compare in interface Comparator<Level>
- See Also:
Comparator.compare(java.lang.Object, java.lang.Object)
getInstance
public static LevelComparator getInstance()
- Returns:
Copyright © 2010-2012 Henix, henix.fr. All Rights Reserved.