Here you can find the source of getURIsPrettyPrint(final Collection
Parameter | Description |
---|---|
uris | the collection of URI objects. |
public static String getURIsPrettyPrint(final Collection<URI> uris)
//package com.java2s; import java.util.*; import java.net.URI; public class Main { /**//from w w w .j ava 2 s.c om * Returns a string describing of a collection of URI objects. * * @param uris the collection of URI objects. * @return the string describing uris */ public static String getURIsPrettyPrint(final Collection<URI> uris) { final StringBuilder builder = new StringBuilder(uris.size() << 4).append("[ "); for (URI uri : uris) builder.append(uri.getFragment()).append(", "); builder.replace(builder.length() - 2, builder.length(), " ]"); return builder.toString(); } }