Package com.google.inject.internal
Class RealElement
- java.lang.Object
-
- com.google.inject.internal.RealElement
-
- All Implemented Interfaces:
java.lang.annotation.Annotation
class RealElement extends java.lang.Object implements Element
An implementation of Element.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.inject.internal.Element
Element.Type
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
keyType
private static java.util.concurrent.atomic.AtomicInteger
nextUniqueId
private java.lang.String
setName
private Element.Type
type
private int
uniqueId
-
Constructor Summary
Constructors Constructor Description RealElement(java.lang.String setName, Element.Type type, java.lang.String keyType)
RealElement(java.lang.String setName, Element.Type type, java.lang.String keyType, int uniqueId)
-
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 o)
int
hashCode()
java.lang.String
keyType()
java.lang.String
setName()
java.lang.String
toString()
Element.Type
type()
int
uniqueId()
-
-
-
Field Detail
-
nextUniqueId
private static final java.util.concurrent.atomic.AtomicInteger nextUniqueId
-
uniqueId
private final int uniqueId
-
setName
private final java.lang.String setName
-
type
private final Element.Type type
-
keyType
private final java.lang.String keyType
-
-
Constructor Detail
-
RealElement
RealElement(java.lang.String setName, Element.Type type, java.lang.String keyType)
-
RealElement
RealElement(java.lang.String setName, Element.Type type, java.lang.String keyType, int uniqueId)
-
-
Method Detail
-
setName
public java.lang.String setName()
-
uniqueId
public int uniqueId()
-
type
public Element.Type type()
-
keyType
public java.lang.String keyType()
-
annotationType
public java.lang.Class<? extends java.lang.annotation.Annotation> annotationType()
- Specified by:
annotationType
in interfacejava.lang.annotation.Annotation
-
toString
public java.lang.String toString()
- Specified by:
toString
in interfacejava.lang.annotation.Annotation
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Specified by:
equals
in interfacejava.lang.annotation.Annotation
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacejava.lang.annotation.Annotation
- Overrides:
hashCode
in classjava.lang.Object
-
-