Example usage for org.apache.commons.collections.keyvalue MultiKey MultiKey

List of usage examples for org.apache.commons.collections.keyvalue MultiKey MultiKey

Introduction

In this page you can find the example usage for org.apache.commons.collections.keyvalue MultiKey MultiKey.

Prototype

public MultiKey(Object key1, Object key2, Object key3, Object key4) 

Source Link

Document

Constructor taking four keys.

Usage

From source file:org.intermine.bio.dataconversion.WormBaseProcessor.java

/**
 * {@inheritDoc}//from  w  w w  . j  av a  2  s.  c  o m
 */
@SuppressWarnings("unchecked")
@Override
protected Map<MultiKey, List<ConfigAction>> getConfig(int taxonId) {
    if (config == null) {
        config = new MultiKeyMap();
        config.put(new MultiKey("feature", "Gene", "WormBase", "uniquename"),
                Arrays.asList(new SetFieldConfigAction("primaryIdentifier"), CREATE_SYNONYM_ACTION));
        config.put(new MultiKey("feature", "Gene", "WormBase", "name"),
                Arrays.asList(new SetFieldConfigAction("symbol"), CREATE_SYNONYM_ACTION));
        config.put(new MultiKey("prop", "Gene", "cds"),
                Arrays.asList(new SetFieldConfigAction("secondaryIdentifier"), CREATE_SYNONYM_ACTION));
        // sequence names -> secondaryIdentifier.  These are synonyms, for some reason they have
        // is_current set to false and type 'exact'
        config.put(new MultiKey("synonym", "Gene", "exact", Boolean.FALSE),
                Arrays.asList(new SetFieldConfigAction("secondaryIdentifier"), CREATE_SYNONYM_ACTION));
    }

    return config;
}