Here you can find the source of classToResourceKeyPrefix(final Class> clazz)
Parameter | Description |
---|---|
clazz | Class |
'.'
)
public static String classToResourceKeyPrefix(final Class<?> clazz)
//package com.java2s; /**// w ww .j av a 2 s . co m * swing-revival: * Swing Revival Toolkit * * Copyright (c) 2009 by Alistair A. Israel. * * This software is made available under the terms of the MIT License. * See LICENSE.txt. * * Created Sep 30, 2009 */ public class Main { /** * @param clazz * {@link Class} * @return the class name as a string, with inner class separators turned into dots (<code>'.'</code>) */ public static String classToResourceKeyPrefix(final Class<?> clazz) { return clazz.getName().replace('$', '.'); } }