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

io.vproxy.pni.PNILinkOptions Maven / Gradle / Ivy

The newest version!
package io.vproxy.pni;

public class PNILinkOptions extends PNILookupOptions {
    private boolean critical = false;
    private boolean allowHeapAccess = false;

    public boolean isCritical() {
        return critical;
    }

    public boolean isAllowHeapAccess() {
        return allowHeapAccess;
    }

    public PNILinkOptions setCritical(boolean critical) {
        if (!critical) {
            clearCritical();
        }
        this.critical = critical;
        return this;
    }

    private void clearCritical() {
        setAllowHeapAccess(false);
    }

    public PNILinkOptions setAllowHeapAccess(boolean allowHeapAccess) {
        if (allowHeapAccess) {
            setCritical(true);
        }
        this.allowHeapAccess = allowHeapAccess;
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy