public class BeanNameComparator extends Object implements Comparator<String>, Serializable
Comparator that orders Spring bean names in the same order as the corresponding
beans appear in a ListableBeanFactory.
Names that are not present in the configured ListableBeanFactory cause an exception.
| Constructor and Description |
|---|
BeanNameComparator(ListableBeanFactory beanFactory) |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(String name1,
String name2) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic BeanNameComparator(ListableBeanFactory beanFactory)
public int compare(String name1, String name2)
compare in interface Comparator<String>Copyright © 2020. All rights reserved.