public abstract class Weigher<T,Location>
extends java.lang.Object
com.intellij.weigher extension point with key parameter specified.
It's almost a must to specify how your weigher relates to the others by priority (see LoadingOrder).
Known key values include:
CompletionService.RELEVANCE_KEY) - to compare lookup elements by relevance and move preferred items to the top
Your weigher should return Comparable instances of the same type.
| Constructor and Description |
|---|
Weigher() |
| Modifier and Type | Method and Description |
|---|---|
void |
setDebugName(java.lang.String debugName) |
java.lang.String |
toString() |
abstract java.lang.Comparable |
weigh(T element,
Location location) |