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

uk.org.lidalia.slf4jtest.Suppliers Maven / Gradle / Ivy

package uk.org.lidalia.slf4jtest;

import com.google.common.base.Supplier;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

final class Suppliers {

    static  Supplier> makeEmptyMutableList() {
        return new Supplier>() {
            @Override
            public List get() {
                return new ArrayList();
            }
        };
    }

    static  Supplier> makeEmptyMutableMap() {
        return new Supplier>() {
            @Override
            public Map get() {
                return new HashMap();
            }
        };
    }

    private Suppliers() {
        throw new UnsupportedOperationException("Not instantiable");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy