Package com.google.inject
Class Key.AnnotationInstanceStrategy
- java.lang.Object
-
- com.google.inject.Key.AnnotationInstanceStrategy
-
- All Implemented Interfaces:
Key.AnnotationStrategy
static class Key.AnnotationInstanceStrategy extends java.lang.Object implements Key.AnnotationStrategy
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.annotation.Annotation
annotation
-
Constructor Summary
Constructors Constructor Description AnnotationInstanceStrategy(java.lang.annotation.Annotation annotation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.annotation.Annotation
getAnnotation()
java.lang.Class<? extends java.lang.annotation.Annotation>
getAnnotationType()
boolean
hasAttributes()
int
hashCode()
java.lang.String
toString()
Key.AnnotationStrategy
withoutAttributes()
-
-
-
Method Detail
-
hasAttributes
public boolean hasAttributes()
- Specified by:
hasAttributes
in interfaceKey.AnnotationStrategy
-
withoutAttributes
public Key.AnnotationStrategy withoutAttributes()
- Specified by:
withoutAttributes
in interfaceKey.AnnotationStrategy
-
getAnnotation
public java.lang.annotation.Annotation getAnnotation()
- Specified by:
getAnnotation
in interfaceKey.AnnotationStrategy
-
getAnnotationType
public java.lang.Class<? extends java.lang.annotation.Annotation> getAnnotationType()
- Specified by:
getAnnotationType
in interfaceKey.AnnotationStrategy
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-