Class MethodWrapperImpl

java.lang.Object
org.glassfish.hk2.utilities.reflection.internal.MethodWrapperImpl
All Implemented Interfaces:
MethodWrapper

public class MethodWrapperImpl extends Object implements MethodWrapper
Wrapper of methods with an equals and hashCode that makes methods hiding other methods be equal
  • Field Details

    • method

      private final Method method
    • hashCode

      private final int hashCode
  • Constructor Details

    • MethodWrapperImpl

      public MethodWrapperImpl(Method method)
  • Method Details

    • getMethod

      public Method getMethod()
      Description copied from interface: MethodWrapper
      Returns the method associated with this wrapper
      Specified by:
      getMethod in interface MethodWrapper
      Returns:
      The method associated with this wrapper. Will never return null
    • hashCode

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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object