Java Class Simple Name Get simpleName(final String fullyQualifiedClassName)

Here you can find the source of simpleName(final String fullyQualifiedClassName)

Description

simple Name

License

Apache License

Declaration

public static String simpleName(final String fullyQualifiedClassName) 

Method Source Code

//package com.java2s;
/*//ww w .  ja v a2s  .co  m
 * Copyright (C) 2016 Red Hat, Inc. and/or its affiliates.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

public class Main {
    public static String simpleName(final String fullyQualifiedClassName) {
        return fullyQualifiedClassName.substring(fullyQualifiedClassName.lastIndexOf('.') + 1);
    }
}

Related

  1. simpleClassNameOf(Class c)
  2. simpleName(Class clazz)
  3. simpleName(Class c)
  4. simpleName(final Class className)
  5. simpleName(final String fqn)
  6. simpleName(final String name)
  7. simpleName(Object obj)
  8. simpleName(String className)
  9. simpleName(String componentName)