Java List Join join(List a, List b)

Here you can find the source of join(List a, List b)

Description

Used by common.ext.

License

Open Source License

Parameter

Parameter Description
c a parameter

Declaration

public static List join(List a, List b) 

Method Source Code

//package com.java2s;
/*// w w w  .  j  a  v  a  2s.co  m
 * WAVE - Web Application Visual Environment
 * A Graphical Modeling Framework (GMF) Plugin for Eclipse
 * Copyright Jens Gulden, 2009, mail@jensgulden.de
 * Licensed under the GNU General Public License (GPL)
 */

import java.util.ArrayList;

import java.util.List;

public class Main {
    /**
     * Used by common.ext.
     * @param c
     * @return
     */
    public static List join(List a, List b) {
        List l = new ArrayList();
        if (a != null) {
            l.addAll(a);
        }
        if (b != null) {
            l.addAll(b);
        }
        return l;
    }
}

Related

  1. join(final String delimiter, List values)
  2. join(final String separator, final List list)
  3. join(final String with, final List array)
  4. join(Iterable list)
  5. join(Iterable list, String delimiter)
  6. join(List a_quotedArgs)
  7. join(List array, String separator)
  8. join(List elements, String joinWith)
  9. join(List elements, String sep)