Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;

public class Main {
    private static ConcurrentMap<String, Class<?>> mappings = new ConcurrentHashMap();

    public static void addClassMapping(String paramString, Class<?> paramClass) {
        if (paramString == null) {
            paramString = paramClass.getName();
        }
        mappings.put(paramString, paramClass);
    }
}