Package dagger.producers.monitoring
Class ProducerToken
- java.lang.Object
-
- dagger.producers.monitoring.ProducerToken
-
public final class ProducerToken extends java.lang.ObjectA token that represents an individual producer method.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ProducerTokencreate(java.lang.Class<?> classToken)Creates a token for a class token that represents the generated factory for a producer method.static ProducerTokencreate(java.lang.String methodName)Creates a token for a producer method.booleanequals(java.lang.Object o)Two tokens are equal if they represent the same method.inthashCode()Returns an appropriate hash code to matchequals(Object).java.lang.StringtoString()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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
Returns an appropriate hash code to matchequals(Object).- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
Returns a representation of the method.- Overrides:
toStringin classjava.lang.Object
-
-