public class PsiProximityComparator
extends java.lang.Object
implements java.util.Comparator<java.lang.Object>
Modifier and Type | Field and Description |
---|---|
static Key<ProximityStatistician> |
STATISTICS_KEY |
static Key<ProximityWeigher> |
WEIGHER_KEY |
Constructor and Description |
---|
PsiProximityComparator(PsiElement context) |
Modifier and Type | Method and Description |
---|---|
int |
compare(java.lang.Object o1,
java.lang.Object o2) |
static WeighingComparable<PsiElement,ProximityLocation> |
getProximity(Computable<? extends PsiElement> elementComputable,
PsiElement context,
ProcessingContext processingContext) |
static WeighingComparable<PsiElement,ProximityLocation> |
getProximity(PsiElement element,
PsiElement context) |
public static final Key<ProximityStatistician> STATISTICS_KEY
public static final Key<ProximityWeigher> WEIGHER_KEY
public PsiProximityComparator(PsiElement context)
public int compare(java.lang.Object o1, java.lang.Object o2)
compare
in interface java.util.Comparator<java.lang.Object>
public static WeighingComparable<PsiElement,ProximityLocation> getProximity(PsiElement element, PsiElement context)
public static WeighingComparable<PsiElement,ProximityLocation> getProximity(Computable<? extends PsiElement> elementComputable, PsiElement context, ProcessingContext processingContext)