Package com.liferay.util.lang

Examples of com.liferay.util.lang.FastStringBuffer


  public static String toUnicodeString(Address[] addresses) {
    return toUnicodeString((InternetAddress[])addresses);
  }

  public static String toUnicodeString(InternetAddress[] addresses) {
    FastStringBuffer sb = new FastStringBuffer();

    if (addresses != null) {
      for (int i = 0; i < addresses.length; i++) {
        if (addresses[i] != null) {
          sb.append(addresses[i].toUnicodeString());
        }

        if ((i + 1) != addresses.length) {
          sb.append(", ");
        }
      }
    }

    return sb.toString();
  }
View Full Code Here

TOP

Related Classes of com.liferay.util.lang.FastStringBuffer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.