Java Collection Print prettyPrintListOfClasses( Collection package1DependenciesOnPackage2)

Here you can find the source of prettyPrintListOfClasses( Collection package1DependenciesOnPackage2)

Description

pretty Print List Of Classes

License

Apache License

Declaration

public static StringBuffer prettyPrintListOfClasses(
            Collection<String> package1DependenciesOnPackage2) 

Method Source Code

//package com.java2s;
/**/* w w w  . j a  v a 2 s  .c  o m*/
 * Copyright 2007 - 2009 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 * For more information visit
 *         http://wiki.architecturerules.org/ and
 *         http://blog.architecturerules.org/
 */

import java.util.Collection;

public class Main {
    public static StringBuffer prettyPrintListOfClasses(
            Collection<String> package1DependenciesOnPackage2) {

        final StringBuffer listOfClasses = new StringBuffer();

        for (String javaClassName : package1DependenciesOnPackage2) {

            listOfClasses.append("\t|\t");
            listOfClasses.append(" |-- @ ");
            listOfClasses.append(javaClassName);
            listOfClasses.append("\n");
        }

        return listOfClasses;
    }
}

Related

  1. prettyPrint(Collection c)
  2. prettyPrint(Collection input)
  3. prettyPrint(Collection allGroups)
  4. prettyPrintCollection(Collection collection)
  5. print(Collection c)
  6. print(Collection c)
  7. print(Collection collection, String delim)
  8. print(Collection c, String separator)