java.lang.Object
joelib.math.symmetry.SymAxesComparator
- All Implemented Interfaces:
- java.util.Comparator
- public class SymAxesComparator
- extends java.lang.Object
- implements java.util.Comparator
Comparator for ring size.
|
Constructor Summary |
SymAxesComparator()
Initializes the SymAxesComparator-Comparator. |
SymAxesComparator
public SymAxesComparator()
- Initializes the SymAxesComparator-Comparator.
compare
public int compare(java.lang.Object o1,
java.lang.Object o2)
- Compares two objects.
- Specified by:
compare in interface java.util.Comparator
equals
public boolean equals(java.lang.Object obj)
- Indicates whether some other object is "equal to" this
Comparator. This method must obey the general contract of
Object.equals(Object) . Additionally, this method can return true
only if the specified Object is also a comparator and it
imposes the same ordering as this comparator. Thus, comp1.equals(comp2)
implies that sgn(comp1.compare(o1, o2))==sgn(comp2.compare(o1, o2))
for every object reference o1 and o2 .
Note that it is always safe not to override
Object.equals(Object) . However, overriding this method may, in some
cases, improve performance by allowing programs to determine that two
distinct Comparators impose the same order.
- Specified by:
equals in interface java.util.Comparator