org.scalabench.plugins.dacapo.util
Class SizeNameComparator
java.lang.Object
org.scalabench.plugins.dacapo.util.SizeNameComparator
- All Implemented Interfaces:
- Comparator<String>
public final class SizeNameComparator
- extends Object
- implements Comparator<String>
A comparator which treats the following strings, commonly used as the names of input sizes, specially.
tiny
small
default
large
huge
gargantuan
colossal
All other strings are sorted beyond them.
SizeNameComparator
public SizeNameComparator()
compare
public int compare(String lhs,
String rhs)
- Specified by:
compare in interface Comparator<String>
equals
public boolean equals(Object other)
- Any two instances of
SizeNameComparator are equal, as this class is a state-less function object.
- Specified by:
equals in interface Comparator<String>- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
Copyright © 2010-2012 Technische Universität Darmstadt. All Rights Reserved.