public abstract class Key
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Key.Builder
A builder for
Key s. |
static class |
Key.MultibindingContributionIdentifier
An object that identifies a multibinding contribution method and the module class that
contributes it to the graph.
|
Constructor and Description |
---|
Key() |
Modifier and Type | Method and Description |
---|---|
static Key.Builder |
builder(javax.lang.model.type.TypeMirror type)
Returns a builder for
Key s. |
abstract boolean |
equals(java.lang.Object o) |
abstract int |
hashCode() |
abstract java.util.Optional<Key.MultibindingContributionIdentifier> |
multibindingContributionIdentifier()
Distinguishes keys for multibinding contributions that share a
type() and qualifier() . |
java.util.Optional<javax.lang.model.element.AnnotationMirror> |
qualifier()
A
Qualifier annotation that provides a unique namespace prefix
for the type of this key. |
abstract Key.Builder |
toBuilder()
Returns a
Key.Builder that inherits the properties of this key. |
java.lang.String |
toString() |
javax.lang.model.type.TypeMirror |
type()
The type represented by this key.
|
public final java.util.Optional<javax.lang.model.element.AnnotationMirror> qualifier()
Qualifier
annotation that provides a unique namespace prefix
for the type of this key.public final javax.lang.model.type.TypeMirror type()
public abstract java.util.Optional<Key.MultibindingContributionIdentifier> multibindingContributionIdentifier()
type()
and qualifier()
.
Each multibound map and set has a synthetic multibinding that depends on the specific contributions to that map or set using keys that identify those multibinding contributions.
Absent except for multibinding contributions.
public abstract Key.Builder toBuilder()
Key.Builder
that inherits the properties of this key.@Memoized public abstract int hashCode()
hashCode
in class java.lang.Object
public abstract boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public final java.lang.String toString()
toString
in class java.lang.Object
public static Key.Builder builder(javax.lang.model.type.TypeMirror type)
Key
s.