Class MethodKey

java.lang.Object
com.strobel.reflection.MethodKey
All Implemented Interfaces:
Serializable

final class MethodKey extends Object implements Serializable
  • Field Details

    • NO_CLASSES

      private static final Class<?>[] NO_CLASSES
    • _name

      private final String _name
    • _argumentTypes

      private final Class<?>[] _argumentTypes
    • _hashCode

      private final int _hashCode
  • Constructor Details

    • MethodKey

      public MethodKey(String name)
    • MethodKey

      public MethodKey(String name, Class<?>[] argTypes)
  • Method Details

    • equals

      public boolean equals(Object o)
      Equality means name is the same and argument type erasures as well.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object