Example usage for org.apache.wicket.util.lang Generics newArrayList

List of usage examples for org.apache.wicket.util.lang Generics newArrayList

Introduction

In this page you can find the example usage for org.apache.wicket.util.lang Generics newArrayList.

Prototype

public static <T> ArrayList<T> newArrayList(final int capacity) 

Source Link

Document

Creates a new ArrayList

Usage

From source file:org.wicketstuff.datastores.memcached.MemcachedSettings.java

License:Apache License

@Override
public IMemcachedSettings setServerNames(String serverNames) {
    Args.notEmpty(serverNames, "serverNames");

    String[] ss = Strings.split(serverNames, ',');
    this.servers = Generics.newArrayList(ss.length);
    for (String server : ss) {
        this.servers.add(server.trim());
    }//  ww w. ja  va 2 s .c  o m
    return this;
}