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

i.RunnableFactory Maven / Gradle / Ivy

There is a newer version: 0.9.6
Show newest version
package i;

import java.lang.invoke.MethodHandle;
import java.lang.invoke.MethodHandles;

import p.score.InternalRunnable;


public final class RunnableFactory {
    private final MethodHandles.Lookup lookup;
    private final MethodHandle target;

    public RunnableFactory(MethodHandles.Lookup lookup, MethodHandle target) {
        this.lookup = lookup;
        this.target = target;
    }

    public s.java.lang.Runnable instantiate() {
        return InternalRunnable.createRunnable(this.lookup, this.target);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy