com.groupdocs.search.common

Class Delegate

  • Direct Known Subclasses:
    MulticastDelegate


    public abstract class Delegate
    extends Object

    Represents a delegate, which refers to a class instance that has a method to be invoked.

    • Constructor Detail

      • Delegate

        public Delegate()
    • Method Detail

      • getInvocationList

        public Delegate[] getInvocationList()

        Returns an invocation list.

        Returns:
        An invocation list.
      • combine

        public static Delegate combine(Delegate a,
                       Delegate b)

        Combines two delegates into one.

        Parameters:
        a - The first delegate to combine.
        b - The second delegate to combine.
        Returns:
        A new combined delegate.
      • combine

        public static Delegate combine(Delegate... delegates)

        Combines several delegates into one.

        Parameters:
        delegates - The delegates to combine.
        Returns:
        A new combined delegate.
      • remove

        public static Delegate remove(Delegate source,
                      Delegate value)

        Removes the value delegate from the source delegate.

        Parameters:
        source - The source delegate.
        value - The value delegate.
        Returns:
        A new delegate that is a result of removing.
      • removeAll

        public static Delegate removeAll(Delegate source,
                         Delegate value)

        Removes the value delegate from the source delegate.

        Parameters:
        source - The source delegate.
        value - The value delegate.
        Returns:
        A new delegate that is a result of removing.
      • op_Equality

        public static boolean op_Equality(Delegate d1,
                          Delegate d2)

        Checks two delegates for equality.

        Parameters:
        d1 - The first delegate.
        d2 - The second delegate.
        Returns:
        The result of checking two delegates for equality.
      • op_Inequality

        public static boolean op_Inequality(Delegate d1,
                            Delegate d2)

        Checks two delegates for inequality.

        Parameters:
        d1 - The first delegate.
        d2 - The second delegate.
        Returns:
        The result of checking two delegates for inequality.