Table of Contents

Class BinaryOperator<T>

Namespace
Java.Util.Function
Assembly
MASES.JNet.dll
public class BinaryOperator<T> : BinaryOperator, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBaseInstance>, IDisposable, IJVMBridgeBaseStatic, IBinaryOperator<T>, IJVMBridgeBase, IJVMBridgeBaseInstance, IJVMBridgeDefinition

Type Parameters

T

The data type associated to the event

Inheritance
BinaryOperator<T>
Implements
Derived
Inherited Members
Extension Methods

Constructors

BinaryOperator()

Initialize a new instance of BinaryOperator<T>

public BinaryOperator()

Properties

OnApply

The Func<T, TResult> to be executed

public virtual Func<T, T, T> OnApply { get; set; }

Property Value

Func<T, T, T>

OnApplyDispose

Optional handler invoked after the event handler returns, to dispose the JVM object returned by this event.

public Action<T> OnApplyDispose { get; set; }

Property Value

Action<T>

Remarks

Set OnApplyDispose when the event handler returns a JVM-backed object that is no longer needed after the call. The handler receives the return value and is responsible for calling Dispose() on it, releasing the underlying JVM global reference immediately instead of waiting for the .NET garbage collector to finalize it. If not set, the return value is not disposed automatically.

Methods

Apply(T, T)

Executes the Function action in the CLR

public virtual T Apply(T o1, T o2)

Parameters

o1 T

The Function object

o2 T

The Function object

Returns

T

The apply T