Package com.google.inject
Class Key.AnnotationTypeStrategy
- java.lang.Object
-
- com.google.inject.Key.AnnotationTypeStrategy
-
- All Implemented Interfaces:
Key.AnnotationStrategy
static class Key.AnnotationTypeStrategy extends java.lang.Object implements Key.AnnotationStrategy
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.annotation.Annotationannotation(package private) java.lang.Class<? extends java.lang.annotation.Annotation>annotationType
-
Constructor Summary
Constructors Constructor Description AnnotationTypeStrategy(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType, java.lang.annotation.Annotation annotation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.annotation.AnnotationgetAnnotation()java.lang.Class<? extends java.lang.annotation.Annotation>getAnnotationType()booleanhasAttributes()inthashCode()java.lang.StringtoString()Key.AnnotationStrategywithoutAttributes()
-
-
-
Method Detail
-
hasAttributes
public boolean hasAttributes()
- Specified by:
hasAttributesin interfaceKey.AnnotationStrategy
-
withoutAttributes
public Key.AnnotationStrategy withoutAttributes()
- Specified by:
withoutAttributesin interfaceKey.AnnotationStrategy
-
getAnnotation
public java.lang.annotation.Annotation getAnnotation()
- Specified by:
getAnnotationin interfaceKey.AnnotationStrategy
-
getAnnotationType
public java.lang.Class<? extends java.lang.annotation.Annotation> getAnnotationType()
- Specified by:
getAnnotationTypein interfaceKey.AnnotationStrategy
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-