Package com.google.inject.internal
Class RealElement
java.lang.Object
com.google.inject.internal.RealElement
- All Implemented Interfaces:
Annotation
An implementation of Element.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.inject.internal.Element
Element.Type -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate static final AtomicIntegerprivate final Stringprivate final Element.Typeprivate final int -
Constructor Summary
ConstructorsConstructorDescriptionRealElement(String setName, Element.Type type, String keyType) RealElement(String setName, Element.Type type, String keyType, int uniqueId) -
Method Summary
-
Field Details
-
nextUniqueId
-
uniqueId
private final int uniqueId -
setName
-
type
-
keyType
-
-
Constructor Details
-
RealElement
RealElement(String setName, Element.Type type, String keyType) -
RealElement
RealElement(String setName, Element.Type type, String keyType, int uniqueId)
-
-
Method Details
-
setName
-
uniqueId
public int uniqueId() -
type
-
keyType
-
annotationType
- Specified by:
annotationTypein interfaceAnnotation
-
toString
- Specified by:
toStringin interfaceAnnotation- Overrides:
toStringin classObject
-
equals
- Specified by:
equalsin interfaceAnnotation- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceAnnotation- Overrides:
hashCodein classObject
-