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

io.vertx.up.uca.container.Virtual Maven / Gradle / Ivy

There is a newer version: 0.9.0
Show newest version
package io.vertx.up.uca.container;

public class Virtual {

    private static Virtual INSTANCE = null;

    private Virtual() {
    }

    public static Virtual create() {
        if (null == INSTANCE) {
            synchronized (Virtual.class) {
                if (null == INSTANCE) {
                    INSTANCE = new Virtual();
                }
            }
        }
        return INSTANCE;
    }

    public static boolean is(final Object input) {
        boolean virtual = false;
        if (null != input && Virtual.class == input.getClass()) {
            virtual = true;
        }
        return virtual;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy