public class CachingComparingClassifier extends ComparingClassifier<LookupElement>
myNext
Constructor and Description |
---|
CachingComparingClassifier(Classifier<LookupElement> next,
LookupElementWeigher weigher) |
Modifier and Type | Method and Description |
---|---|
void |
addElement(LookupElement t,
ProcessingContext context) |
java.lang.Iterable<LookupElement> |
classify(java.lang.Iterable<? extends LookupElement> source,
ProcessingContext context) |
java.util.List<Pair<LookupElement,java.lang.Object>> |
getSortingWeights(java.lang.Iterable<? extends LookupElement> items,
ProcessingContext context) |
java.lang.Comparable |
getWeight(LookupElement element,
ProcessingContext context) |
void |
removeElement(LookupElement element,
ProcessingContext context) |
getNext, getPresentableName
public CachingComparingClassifier(Classifier<LookupElement> next, LookupElementWeigher weigher)
public final java.lang.Comparable getWeight(LookupElement element, ProcessingContext context)
getWeight
in class ComparingClassifier<LookupElement>
public void removeElement(LookupElement element, ProcessingContext context)
removeElement
in class Classifier<LookupElement>
public java.lang.Iterable<LookupElement> classify(java.lang.Iterable<? extends LookupElement> source, ProcessingContext context)
classify
in class ComparingClassifier<LookupElement>
public java.util.List<Pair<LookupElement,java.lang.Object>> getSortingWeights(java.lang.Iterable<? extends LookupElement> items, ProcessingContext context)
getSortingWeights
in class ComparingClassifier<LookupElement>
Classifier.classify(Iterable, ProcessingContext)
.
May return an empty list if there are no suitable objects available.
Used for diagnostics and statistic collection.public void addElement(LookupElement t, ProcessingContext context)
addElement
in class Classifier<LookupElement>