Class ProducerToken

java.lang.Object
dagger.producers.monitoring.ProducerToken

public final class ProducerToken extends Object
A token that represents an individual producer method.
  • Method Details

    • create

      public static ProducerToken create(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(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(Object o)
      Two tokens are equal if they represent the same method.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Returns an appropriate hash code to match equals(Object).
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Returns a representation of the method.
      Overrides:
      toString in class Object