public class CompletionSorterImpl extends CompletionSorter
Constructor and Description |
---|
CompletionSorterImpl(java.util.List<? extends ClassifierFactory<LookupElement>> members) |
Modifier and Type | Method and Description |
---|---|
Classifier<LookupElement> |
buildClassifier(Classifier<LookupElement> tail) |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
CompletionSorterImpl |
weigh(LookupElementWeigher weigher) |
CompletionSorterImpl |
weighAfter(java.lang.String afterId,
LookupElementWeigher... weighers) |
CompletionSorterImpl |
weighBefore(java.lang.String beforeId,
LookupElementWeigher... weighers) |
static ClassifierFactory<LookupElement> |
weighingFactory(LookupElementWeigher weigher) |
CompletionSorterImpl |
withClassifier(ClassifierFactory<LookupElement> classifierFactory) |
CompletionSorterImpl |
withClassifier(java.lang.String anchorId,
boolean beforeAnchor,
ClassifierFactory<LookupElement> classifierFactory) |
defaultSorter, emptySorter
public CompletionSorterImpl(java.util.List<? extends ClassifierFactory<LookupElement>> members)
public static ClassifierFactory<LookupElement> weighingFactory(LookupElementWeigher weigher)
public CompletionSorterImpl weighBefore(java.lang.String beforeId, LookupElementWeigher... weighers)
weighBefore
in class CompletionSorter
public CompletionSorterImpl weighAfter(java.lang.String afterId, LookupElementWeigher... weighers)
weighAfter
in class CompletionSorter
public CompletionSorterImpl weigh(LookupElementWeigher weigher)
weigh
in class CompletionSorter
public CompletionSorterImpl withClassifier(ClassifierFactory<LookupElement> classifierFactory)
public CompletionSorterImpl withClassifier(java.lang.String anchorId, boolean beforeAnchor, ClassifierFactory<LookupElement> classifierFactory)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Classifier<LookupElement> buildClassifier(Classifier<LookupElement> tail)