Does exists "with" keyword (or default method) on java? : I'm working on a code when I notice the following "with" keyword on the constructor and I wanted to know what kind of constructor (or technique) is this, and how to use it.

    public static Database with(String key) {
        if (sInstance == null) {
            sInstance = new Database(key);
        }
        return sInstance;
    }

And one usage of this is:

    mDatabase = Database.with(User.listAll(User.class).get(0).getKey());

