public static String formatTypes(Iterable<? extends Type> baseTypes, final boolean simpleNames) { return formatIterable(baseTypes, new Function<Type>() { @Override public String apply(Type from, int position) { return commaDelimiterFunction().apply(formatType(from, simpleNames), position); } }); }
/** * Gets a string representation from an array of annotations * * @param annotations The annotations * @return The string representation */ public static String formatAnnotations(Annotation[] annotations) { return formatIterable(annotations, ANNOTATION_LIST_FUNCTION); }
public static String formatAsFormalParameterList(Iterable<? extends AnnotatedParameter<?>> parameters) { return "(" + formatIterable(parameters, new Function<AnnotatedParameter<?>>() { @Override public String apply(AnnotatedParameter<?> from, int position) { return commaDelimiterFunction().apply(formatParameter(from), position); } }) + ")"; }
/** * Gets a string representation from an array of annotations * * @param annotations The annotations * @return The string representation */ public static String formatAnnotations(Annotation[] annotations) { return formatIterable(annotations, ANNOTATION_LIST_FUNCTION); }
public static String formatAsFormalParameterList(Iterable<? extends AnnotatedParameter<?>> parameters) { return "(" + formatIterable(parameters, new Function<AnnotatedParameter<?>>() { @Override public String apply(AnnotatedParameter<?> from, int position) { return commaDelimiterFunction().apply(formatParameter(from), position); } }) + ")"; }
public static String formatBusinessInterfaceDescriptors(Iterable<? extends BusinessInterfaceDescriptor<?>> businessInterfaceDescriptors) { return formatIterable(businessInterfaceDescriptors, new Function<BusinessInterfaceDescriptor<?>>() { @Override public String apply(BusinessInterfaceDescriptor<?> from, int position) { return commaDelimiterFunction().apply(formatType(from.getInterface()), position); } }); }
public static String formatAsFormalParameterList(Iterable<? extends AnnotatedParameter<?>> parameters) { return "(" + formatIterable(parameters, new Function<AnnotatedParameter<?>>() { @Override public String apply(AnnotatedParameter<?> from, int position) { return commaDelimiterFunction().apply(formatParameter(from), position); } }) + ")"; }
/** * Gets a string representation from an array of annotations * * @param annotations The annotations * @return The string representation */ public static String formatAnnotations(Annotation[] annotations) { return formatIterable(annotations, ANNOTATION_LIST_FUNCTION); }
public static String formatTypes(Iterable<? extends Type> baseTypes, boolean simpleNames) { return formatIterable(baseTypes, new Function<Type>() { @Override public String apply(Type from, int position) { return commaDelimiterFunction().apply(formatType(from, simpleNames), position); } }); }
/** * Gets a string representation from an array of annotations * * @param annotations The annotations * @return The string representation */ public static String formatAnnotations(Annotation[] annotations) { return formatIterable(annotations, ANNOTATION_LIST_FUNCTION); }
public static String formatTypes(Iterable<? extends Type> baseTypes, boolean simpleNames) { return formatIterable(baseTypes, new Function<Type>() { @Override public String apply(Type from, int position) { return commaDelimiterFunction().apply(formatType(from, simpleNames), position); } }); }
public static String formatBusinessInterfaceDescriptors(Iterable<? extends BusinessInterfaceDescriptor<?>> businessInterfaceDescriptors) { return formatIterable(businessInterfaceDescriptors, new Function<BusinessInterfaceDescriptor<?>>() { @Override public String apply(BusinessInterfaceDescriptor<?> from, int position) { return commaDelimiterFunction().apply(formatType(from.getInterface()), position); } }); }
public static String formatAsFormalParameterList(Iterable<? extends AnnotatedParameter<?>> parameters) { return "(" + formatIterable(parameters, new Function<AnnotatedParameter<?>>() { @Override public String apply(AnnotatedParameter<?> from, int position) { return commaDelimiterFunction().apply(formatParameter(from), position); } }) + ")"; }
/** * Gets a string representation from an array of annotations * * @param annotations The annotations * @return The string representation */ public static String formatAnnotations(Annotation[] annotations) { return formatIterable(annotations, ANNOTATION_LIST_FUNCTION); }
public static String formatTypes(Iterable<? extends Type> baseTypes, boolean simpleNames) { return formatIterable(baseTypes, new Function<Type>() { @Override public String apply(Type from, int position) { return commaDelimiterFunction().apply(formatType(from, simpleNames), position); } }); }
/** * Gets a string representation from an array of annotations * * @param annotations The annotations * @return The string representation */ public static String formatAnnotations(Annotation[] annotations) { return formatIterable(annotations, ANNOTATION_LIST_FUNCTION); }
public static <D extends GenericDeclaration> String formatTypeParameters(TypeVariable<D>[] typeParams) { return wrapIfNecessary(formatIterable(typeParams, new Function<TypeVariable<D>>() { @Override public String apply(TypeVariable<D> from, int position) { return spaceDelimiterFunction().apply(formatTypeVariable(from, true), position); } }), LT, GT); }
public static <D extends GenericDeclaration> String formatTypeParameters(TypeVariable<D>[] typeParams) { return wrapIfNecessary(formatIterable(typeParams, new Function<TypeVariable<D>>() { @Override public String apply(TypeVariable<D> from, int position) { return spaceDelimiterFunction().apply(formatTypeVariable(from, true), position); } }), LT, GT); }
public static String formatActualTypeArguments(Type[] actualTypeArguments, boolean simpleNames) { return wrapIfNecessary(formatIterable(actualTypeArguments, new Function<Type>() { @Override public String apply(Type from, int position) { return commaDelimiterFunction().apply(formatType(from, simpleNames), position); } }), LT, GT); }
public static <D extends GenericDeclaration> String formatTypeParameters(TypeVariable<D>[] typeParams) { return wrapIfNecessary(formatIterable(typeParams, new Function<TypeVariable<D>>() { @Override public String apply(TypeVariable<D> from, int position) { return spaceDelimiterFunction().apply(formatTypeVariable(from, true), position); } }), LT, GT); }