Class PrioritySource

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Object source  
      private int value  
    • Constructor Summary

      Constructors 
      Constructor Description
      PrioritySource​(java.lang.Object source, int value)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Class<? extends java.lang.annotation.Annotation> annotationType()  
      boolean equals​(java.lang.Object rhs)  
      <T extends java.lang.annotation.Annotation>
      T
      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()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • source

        private final java.lang.Object source
      • value

        private final int value
    • Constructor Detail

      • PrioritySource

        PrioritySource​(java.lang.Object source,
                       int value)
        Parameters:
        source - The owning source
        value - The priority
    • Method Detail

      • value

        public int value()
      • annotationType

        public java.lang.Class<? extends java.lang.annotation.Annotation> annotationType()
        Specified by:
        annotationType in interface java.lang.annotation.Annotation
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface java.lang.annotation.Annotation
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object rhs)
        Specified by:
        equals in interface java.lang.annotation.Annotation
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Specified by:
        toString in interface java.lang.annotation.Annotation
        Overrides:
        toString in class java.lang.Object
      • getAnnotation

        public <T extends java.lang.annotation.Annotation> T getAnnotation​(com.google.inject.Binding<?> binding,
                                                                           java.lang.Class<T> annotationType)
        Description copied from interface: AnnotatedSource
        Returns the annotation of the given type that is associated with the binding.
        Specified by:
        getAnnotation in interface AnnotatedSource
        Parameters:
        binding - The binding
        annotationType - The annotation type
        Returns:
        The associated annotation; null if no such annotation exists