Class PolymorphicDispatcher.MethodNameFilter

  • All Implemented Interfaces:
    com.google.common.base.Predicate<java.lang.reflect.Method>, java.util.function.Predicate<java.lang.reflect.Method>
    Enclosing class:
    PolymorphicDispatcher<RT>

    public static class PolymorphicDispatcher.MethodNameFilter
    extends java.lang.Object
    implements com.google.common.base.Predicate<java.lang.reflect.Method>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int maxParams  
      protected java.lang.String methodName  
      protected int minParams  
    • Constructor Summary

      Constructors 
      Constructor Description
      MethodNameFilter​(java.lang.String methodName, int minParams, int maxParams)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean apply​(java.lang.reflect.Method param)  
      int getMaxParams()  
      int getMinParams()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface com.google.common.base.Predicate

        equals, test
      • Methods inherited from interface java.util.function.Predicate

        and, negate, or
    • Field Detail

      • maxParams

        protected final int maxParams
      • methodName

        protected final java.lang.String methodName
      • minParams

        protected final int minParams
    • Constructor Detail

      • MethodNameFilter

        public MethodNameFilter​(java.lang.String methodName,
                                int minParams,
                                int maxParams)
    • Method Detail

      • apply

        public boolean apply​(java.lang.reflect.Method param)
        Specified by:
        apply in interface com.google.common.base.Predicate<java.lang.reflect.Method>
      • toString

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

        public int getMaxParams()
      • getMinParams

        public int getMinParams()