All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.ldk.util.TwoTuple Maven / Gradle / Ivy

There is a newer version: 0.0.124.0
Show newest version
package org.ldk.util;

public class TwoTuple {
    private Runnable finalize_run;
    public A a;
    public B b;
    public TwoTuple(A a, B b) {
        this.a = a;
        this.b = b;
    }
    public TwoTuple(A a, B b, Runnable finalize_run) {
        this(a, b);
        this.finalize_run = finalize_run;
    }
    @Override
    public void finalize() throws Throwable {
        if (finalize_run != null) finalize_run.run();
        super.finalize();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy