collections.map
Class StarInfo
java.lang.Object
collections.map.StarInfo
public class StarInfo
- extends java.lang.Object
StarInfo class containing two explicit comparators.
- Author:
- Thomas Rowland
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
NAME_COMPARATOR
public static final java.util.Comparator NAME_COMPARATOR
DIST_COMPARATOR
public static final java.util.Comparator DIST_COMPARATOR
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
getName
public java.lang.String getName()
getDistance
public double getDistance()