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.StringkeyTypeprivate static java.util.concurrent.atomic.AtomicIntegernextUniqueIdprivate java.lang.StringsetNameprivate Element.Typetypeprivate intuniqueId
-
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()booleanequals(java.lang.Object o)inthashCode()java.lang.StringkeyType()java.lang.StringsetName()java.lang.StringtoString()Element.Typetype()intuniqueId()
-
-
-
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:
annotationTypein interfacejava.lang.annotation.Annotation
-
toString
public java.lang.String toString()
- Specified by:
toStringin interfacejava.lang.annotation.Annotation- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Specified by:
equalsin interfacejava.lang.annotation.Annotation- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacejava.lang.annotation.Annotation- Overrides:
hashCodein classjava.lang.Object
-
-