Example usage for java.lang.reflect Parameter toString

List of usage examples for java.lang.reflect Parameter toString

Introduction

In this page you can find the example usage for java.lang.reflect Parameter toString.

Prototype

public String toString() 

Source Link

Document

Returns a string describing this parameter.

Usage

From source file:org.springframework.cloud.iot.coap.method.ResolvableMethod.java

private String formatParameter(Parameter param) {
    Annotation[] annot = param.getAnnotations();
    return annot.length > 0
            ? Arrays.stream(annot).map(this::formatAnnotation).collect(joining(",", "[", "]")) + " " + param
            : param.toString();
}

From source file:org.springframework.messaging.handler.invocation.ResolvableMethod.java

private String formatParameter(Parameter param) {
    Annotation[] anns = param.getAnnotations();
    return (anns.length > 0
            ? Arrays.stream(anns).map(this::formatAnnotation).collect(joining(",", "[", "]")) + " " + param
            : param.toString());
}