Package dagger.producers.monitoring
Class ProducerToken
- java.lang.Object
-
- dagger.producers.monitoring.ProducerToken
-
public final class ProducerToken extends java.lang.Object
A token that represents an individual producer method.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ProducerToken
create(java.lang.Class<?> classToken)
Creates a token for a class token that represents the generated factory for a producer method.static ProducerToken
create(java.lang.String methodName)
Creates a token for a producer method.boolean
equals(java.lang.Object o)
Two tokens are equal if they represent the same method.int
hashCode()
Returns an appropriate hash code to matchequals(Object)
.java.lang.String
toString()
Returns a representation of the method.
-
-
-
Method Detail
-
create
public static ProducerToken create(java.lang.Class<?> classToken)
Creates a token for a class token that represents the generated factory for a producer method.Do not use this! This is intended to be called by generated code only, and its signature may change at any time.
-
create
public static ProducerToken create(java.lang.String methodName)
Creates a token for a producer method.Do not use this! This is intended to be called by generated code only, and its signature may change at any time.
-
equals
public boolean equals(java.lang.Object o)
Two tokens are equal if they represent the same method.- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
Returns an appropriate hash code to matchequals(Object)
.- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
Returns a representation of the method.- Overrides:
toString
in classjava.lang.Object
-
-