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 String
private static final AtomicInteger
private final String
private final Element.Type
private 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:
annotationType
in interfaceAnnotation
-
toString
- Specified by:
toString
in interfaceAnnotation
- Overrides:
toString
in classObject
-
equals
- Specified by:
equals
in interfaceAnnotation
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceAnnotation
- Overrides:
hashCode
in classObject
-