Class 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 match equals(Object).
      java.lang.String toString()
      Returns a representation of the method.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • 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 class java.lang.Object
      • hashCode

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

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