/** * Compares this name to another. * <p> * Instances are compared in alphabetical order based on the name, taking into account the implementation type. * * @param other the object to compare to * @return the comparison */ @Override public int compareTo(MarketDataName<?> other) { if (getClass() == other.getClass()) { return getName().compareTo(other.getName()); } return compareSlow(other); }