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

org.jboss.resteasy.reactive.server.util.MethodId Maven / Gradle / Ivy

There is a newer version: 3.17.5
Show newest version
package org.jboss.resteasy.reactive.server.util;

import java.util.Arrays;

@SuppressWarnings("rawtypes")
public final class MethodId {

    private MethodId() {
    }

    public static String get(String methodName, String declaringClassName, String... parameterClassNames) {
        return declaringClassName + '#' + methodName + '(' + Arrays.toString(parameterClassNames) + ')';
    }

    public static String get(String methodName, Class declaringClass, Class... parameterClasses) {
        String[] parameterClassNames = new String[parameterClasses.length];
        for (int i = 0; i < parameterClasses.length; i++) {
            parameterClassNames[i] = parameterClasses[i].getName();
        }
        return get(methodName, declaringClass.getName(), parameterClassNames);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy