/** * Compare the given two {@link VTNIdentifiable} instances. * * @param o1 The first object to be compared. * @param o2 The second object to be compared. * @return A negative integer, zero, or a positive integer as the * first argument is less than, equal to, or greater than * the second. */ @Override public int compare(VTNIdentifiable<T> o1, VTNIdentifiable<T> o2) { T id1 = o1.getIdentifier(); T id2 = o2.getIdentifier(); return id1.compareTo(id2); }