Javadoc
Populates a
Multiset with the maximum number of necessary steps
from a given type to its super types. Sorting the set by the steps creates
a stable order on from the direct super class, the most specialized implemented
interfaces up to object.
E.g. although
StringBuilder implements
java.io.Serializable and
CharSequence, serializable is treated as more specific by this algorithm
since the super class AbstractStringBuilder implements
CharSequence, too.
Thus the number of steps to
java.io.Serializable is 1
while
CharSequence requires 2
hops.