final class PrioritySource extends java.lang.Object implements Priority, AnnotatedSource
Priority that can also act as an @AnnotatedSource.| Modifier and Type | Field and Description |
|---|---|
private java.lang.Object |
source |
private int |
value |
| Constructor and Description |
|---|
PrioritySource(java.lang.Object source,
int value) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<? extends java.lang.annotation.Annotation> |
annotationType() |
boolean |
equals(java.lang.Object rhs) |
<T extends java.lang.annotation.Annotation> |
getAnnotation(com.google.inject.Binding<?> binding,
java.lang.Class<T> annotationType)
Returns the annotation of the given type that is associated with the binding.
|
int |
hashCode() |
java.lang.String |
toString() |
int |
value() |
PrioritySource(java.lang.Object source,
int value)
source - The owning sourcevalue - The prioritypublic int value()
public java.lang.Class<? extends java.lang.annotation.Annotation> annotationType()
annotationType in interface java.lang.annotation.Annotationpublic int hashCode()
hashCode in interface java.lang.annotation.AnnotationhashCode in class java.lang.Objectpublic boolean equals(java.lang.Object rhs)
equals in interface java.lang.annotation.Annotationequals in class java.lang.Objectpublic java.lang.String toString()
toString in interface java.lang.annotation.AnnotationtoString in class java.lang.Objectpublic <T extends java.lang.annotation.Annotation> T getAnnotation(com.google.inject.Binding<?> binding,
java.lang.Class<T> annotationType)
AnnotatedSourcegetAnnotation in interface AnnotatedSourcebinding - The bindingannotationType - The annotation typenull if no such annotation exists