Class MethodWrapperImpl

  • All Implemented Interfaces:
    MethodWrapper

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

      Fields 
      Modifier and Type Field Description
      private int hashCode  
      private java.lang.reflect.Method method  
    • Constructor Summary

      Constructors 
      Constructor Description
      MethodWrapperImpl​(java.lang.reflect.Method method)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.lang.reflect.Method getMethod()
      Returns the method associated with this wrapper
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • method

        private final java.lang.reflect.Method method
      • hashCode

        private final int hashCode
    • Constructor Detail

      • MethodWrapperImpl

        public MethodWrapperImpl​(java.lang.reflect.Method method)
    • Method Detail

      • getMethod

        public java.lang.reflect.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 java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object