public final class AugmentationMethod extends java.lang.Object implements java.lang.Comparable<AugmentationMethod>
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(AugmentationMethod other)
Compare applications for priority.
|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
java.lang.reflect.Method |
method() |
java.lang.String |
toString() |
public java.lang.reflect.Method method()
public java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(AugmentationMethod other)
The greater application is the one with the lower priority so that in a stable-sorted list of application, we always take the first one.
The natural order defined is:
target specificity < scope < kind
so that the implied priority is to use the augmentation defined:
compareTo in interface java.lang.Comparable<AugmentationMethod>public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object