Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

All snippets
Create a snippet
Full search

Quick search:


Editing Snippet ID: #1015400
Snippet name:
Category, Type:
Content:
static Map<S, Class> classForNameOpt_cache = synchroHashMap(); static Class classForNameOpt(S name) ctex { if (classForNameOpt_cache.containsKey(name)) ret classForNameOpt_cache.get(name); Class c = null; try { c = Class.forName(name); } catch {} classForNameOpt_cache.put(name, c); ret c; }
Comment:
Public (visible to everyone):
Created: 2018-05-13 16:46:22

This page without fancy editor.