public static < X > String createParameterId ( Type type , Set < Annotation > annotations ) { StringBuilder builder = new StringBuilder ( ) ; if ( type instanceof Class < ? > ) { Class < ? > c = ( Class < ? > ) type ; builder . append ( c . getName ( ) ) ; } else { builder . append ( type . toString ( ) ) ; } builder . append ( createAnnotationCollectionId ( annotations ) ) ; return builder . toString ( ) ; }
Creates a string representation of a given type and set of annotations .