Example usage for org.apache.commons.collections.map MultiValueMap MultiValueMap

List of usage examples for org.apache.commons.collections.map MultiValueMap MultiValueMap

Introduction

In this page you can find the example usage for org.apache.commons.collections.map MultiValueMap MultiValueMap.

Prototype

public MultiValueMap() 

Source Link

Document

Creates a MultiValueMap based on a HashMap and storing the multiple values in an ArrayList.

Usage

From source file:net.firejack.platform.core.utils.CollectionUtils.java

/**
 *
 * @param objects//from  w  w w  . j  a v  a  2 s.  c o m
 * @param key
 * @param value
 * @return
 */
public static MultiValueMap create(List<Object[]> objects, int key, int value) {
    MultiValueMap map = new MultiValueMap();

    if (objects != null) {
        for (Object[] object : objects) {
            map.put(object[key], object[value]);
        }
    }
    return map;
}

From source file:io.github.arven.flare.ejb.FlareStatelessContainer.java

public FlareStatelessContainer(String id, Context ctx) throws NamingException {
    this.stateless = new MultiValueMap();
    this.ctx = ctx;
    this.id = id;
    ctx.bind("DefaultStatelessContainer", this);
    LoggerFactory.getLogger(FlareStatelessContainer.class).info("Flare created Container(id = {})", id);
}

From source file:net.jadler.stubbing.MutableStubResponse.java

/**
 * Creates new empty stub http response definition.
 */
MutableStubResponse() {
    this.headers = new MultiValueMap();
}

From source file:net.jadler.stubbing.StubResponse.java

/**
 * Creates new empty stub http response definition.
 */
public StubResponse() {
    this.headers = new MultiValueMap();
}

From source file:com.wegas.core.ejb.ScriptEventFacade.java

/**
 *
 *//*from www. j av a 2  s  .  c o m*/
public ScriptEventFacade() {
    this.eventFired = false;
    this.eventsFired = new MultiValueMap();
    this.registeredEvents = new MultiValueMap();
}

From source file:net.jadler.KeyValues.java

/**
 * Creates new empty instance.
 */
public KeyValues() {
    this.values = new MultiValueMap();
}

From source file:com.nextep.designer.vcs.gef.VersionTreeDiagram.java

public VersionTreeDiagram() {
    super();//www.  j  a  va  2 s. c  om
    setName("VersionTree");
    sourceConnMap = new MultiValueMap();
    targetConnMap = new MultiValueMap();
}

From source file:com.anrisoftware.sscontrol.core.registry.ServicesRegistryImpl.java

ServicesRegistryImpl() {
    this.services = new MultiValueMap();
}

From source file:com.nextep.designer.vcs.ui.navigators.VersionableNavigatorMapper.java

public VersionableNavigatorMapper(CommonViewer viewer) {
    this.viewer = viewer;
    itemsMap = new MultiValueMap();
}

From source file:com.nextep.designer.sqlgen.mysql.impl.MySQLErrorsMarkerProvider.java

public MySQLErrorsMarkerProvider() {
    instance = this;
    markersMap = new MultiValueMap();
}