public abstract class Delegate extends Object
Represents a delegate, which refers to a class instance that has a method to be invoked.
Constructor and Description |
---|
Delegate() |
Modifier and Type | Method and Description |
---|---|
static Delegate |
combine(Delegate... delegates)
Combines several delegates into one.
|
static Delegate |
combine(Delegate a,
Delegate b)
Combines two delegates into one.
|
protected Delegate |
combineImpl(Delegate d) |
Delegate[] |
getInvocationList()
Returns an invocation list.
|
static boolean |
op_Equality(Delegate d1,
Delegate d2)
Checks two delegates for equality.
|
static boolean |
op_Inequality(Delegate d1,
Delegate d2)
Checks two delegates for inequality.
|
static Delegate |
remove(Delegate source,
Delegate value)
Removes the value delegate from the source delegate.
|
static Delegate |
removeAll(Delegate source,
Delegate value)
Removes the value delegate from the source delegate.
|
protected Delegate |
removeImpl(Delegate d) |
public Delegate[] getInvocationList()
Returns an invocation list.
public static Delegate combine(Delegate a, Delegate b)
Combines two delegates into one.
a
- The first delegate to combine.b
- The second delegate to combine.public static Delegate combine(Delegate... delegates)
Combines several delegates into one.
delegates
- The delegates to combine.public static Delegate remove(Delegate source, Delegate value)
Removes the value delegate from the source delegate.
source
- The source delegate.value
- The value delegate.public static Delegate removeAll(Delegate source, Delegate value)
Removes the value delegate from the source delegate.
source
- The source delegate.value
- The value delegate.public static boolean op_Equality(Delegate d1, Delegate d2)
Checks two delegates for equality.
d1
- The first delegate.d2
- The second delegate.