Delegate

Inheritance: java.lang.Object

public abstract class Delegate

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

Constructors

Constructor Description
Delegate()

Methods

Method Description
getInvocationList() Returns an invocation list.
combine(Delegate a, Delegate b) Combines two delegates into one.
combine(Delegate[] delegates) Combines several delegates into one.
remove(Delegate source, Delegate value) Removes the value delegate from the source delegate.
removeAll(Delegate source, Delegate value) Removes the value delegate from the source delegate.
op_Equality(Delegate d1, Delegate d2) Checks two delegates for equality.
op_Inequality(Delegate d1, Delegate d2) Checks two delegates for inequality.

Delegate()

public Delegate()

getInvocationList()

public Delegate[] getInvocationList()

Returns an invocation list.

Returns: com.groupdocs.search.common.Delegate[] - An invocation list.

combine(Delegate a, Delegate b)

public static Delegate combine(Delegate a, Delegate b)

Combines two delegates into one.

Parameters:

Parameter Type Description
a Delegate The first delegate to combine.
b Delegate The second delegate to combine.

Returns: Delegate - A new combined delegate.

combine(Delegate[] delegates)

public static Delegate combine(Delegate[] delegates)

Combines several delegates into one.

Parameters:

Parameter Type Description
delegates Delegate[] The delegates to combine.

Returns: Delegate - A new combined delegate.

remove(Delegate source, Delegate value)

public static Delegate remove(Delegate source, Delegate value)

Removes the value delegate from the source delegate.

Parameters:

Parameter Type Description
source Delegate The source delegate.
value Delegate The value delegate.

Returns: Delegate - A new delegate that is a result of removing.

removeAll(Delegate source, Delegate value)

public static Delegate removeAll(Delegate source, Delegate value)

Removes the value delegate from the source delegate.

Parameters:

Parameter Type Description
source Delegate The source delegate.
value Delegate The value delegate.

Returns: Delegate - A new delegate that is a result of removing.

op_Equality(Delegate d1, Delegate d2)

public static boolean op_Equality(Delegate d1, Delegate d2)

Checks two delegates for equality.

Parameters:

Parameter Type Description
d1 Delegate The first delegate.
d2 Delegate The second delegate.

Returns: boolean - The result of checking two delegates for equality.

op_Inequality(Delegate d1, Delegate d2)

public static boolean op_Inequality(Delegate d1, Delegate d2)

Checks two delegates for inequality.

Parameters:

Parameter Type Description
d1 Delegate The first delegate.
d2 Delegate The second delegate.

Returns: boolean - The result of checking two delegates for inequality.