当前位置: 首页>>代码示例>>Java>>正文


Java MultiValueMap.multiValueMap方法代码示例

本文整理汇总了Java中org.apache.commons.collections4.map.MultiValueMap.multiValueMap方法的典型用法代码示例。如果您正苦于以下问题:Java MultiValueMap.multiValueMap方法的具体用法?Java MultiValueMap.multiValueMap怎么用?Java MultiValueMap.multiValueMap使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.commons.collections4.map.MultiValueMap的用法示例。


在下文中一共展示了MultiValueMap.multiValueMap方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: testPopulateMultiMap_add2677

import org.apache.commons.collections4.map.MultiValueMap; //导入方法依赖的package包/类
@org.junit.Test(timeout = 1000)
public void testPopulateMultiMap_add2677() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testPopulateMultiMap_add2677");
    final List<X> list = new ArrayList<X>();
    list.add(new X(1 , "x1"));
    list.add(new X(1 , "x1"));
    list.add(new X(2 , "x2"));
    list.add(new X(2 , "x3"));
    list.add(new X(5 , "x4"));
    list.add(new X(5 , "x5"));
    final MultiValueMap<java.lang.Integer, X> map = MultiValueMap.multiValueMap(new TreeMap<java.lang.Integer, java.util.Collection<X>>());
    org.apache.commons.collections4.MapUtils.populateMap(map, list, new Transformer<X, java.lang.Integer>() {
        public Integer transform(X input) {
            return input.key;
        }
    }, org.apache.commons.collections4.TransformerUtils.<X>nopTransformer());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7893,list,7892,list.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7895,map,7894,map.totalSize());
    for (int i = 0 ; i < (list.size()) ; i++) {
        fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7897,map,7896,map.containsKey(list.get(i).key));
        fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7899,map,7898,map.containsValue(list.get(i)));
    }
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:25,代码来源:MapUtilsTest.java

示例2: testPopulateMultiMap_add2678

import org.apache.commons.collections4.map.MultiValueMap; //导入方法依赖的package包/类
@org.junit.Test(timeout = 1000)
public void testPopulateMultiMap_add2678() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testPopulateMultiMap_add2678");
    final List<X> list = new ArrayList<X>();
    list.add(new X(1 , "x1"));
    list.add(new X(2 , "x2"));
    list.add(new X(2 , "x2"));
    list.add(new X(2 , "x3"));
    list.add(new X(5 , "x4"));
    list.add(new X(5 , "x5"));
    final MultiValueMap<java.lang.Integer, X> map = MultiValueMap.multiValueMap(new TreeMap<java.lang.Integer, java.util.Collection<X>>());
    org.apache.commons.collections4.MapUtils.populateMap(map, list, new Transformer<X, java.lang.Integer>() {
        public Integer transform(X input) {
            return input.key;
        }
    }, org.apache.commons.collections4.TransformerUtils.<X>nopTransformer());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7893,list,7892,list.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7895,map,7894,map.totalSize());
    for (int i = 0 ; i < (list.size()) ; i++) {
        fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7897,map,7896,map.containsKey(list.get(i).key));
        fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7899,map,7898,map.containsValue(list.get(i)));
    }
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:25,代码来源:MapUtilsTest.java

示例3: testPopulateMultiMap_add2679

import org.apache.commons.collections4.map.MultiValueMap; //导入方法依赖的package包/类
@org.junit.Test(timeout = 1000)
public void testPopulateMultiMap_add2679() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testPopulateMultiMap_add2679");
    final List<X> list = new ArrayList<X>();
    list.add(new X(1 , "x1"));
    list.add(new X(2 , "x2"));
    list.add(new X(2 , "x3"));
    list.add(new X(2 , "x3"));
    list.add(new X(5 , "x4"));
    list.add(new X(5 , "x5"));
    final MultiValueMap<java.lang.Integer, X> map = MultiValueMap.multiValueMap(new TreeMap<java.lang.Integer, java.util.Collection<X>>());
    org.apache.commons.collections4.MapUtils.populateMap(map, list, new Transformer<X, java.lang.Integer>() {
        public Integer transform(X input) {
            return input.key;
        }
    }, org.apache.commons.collections4.TransformerUtils.<X>nopTransformer());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7893,list,7892,list.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7895,map,7894,map.totalSize());
    for (int i = 0 ; i < (list.size()) ; i++) {
        fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7897,map,7896,map.containsKey(list.get(i).key));
        fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7899,map,7898,map.containsValue(list.get(i)));
    }
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:25,代码来源:MapUtilsTest.java

示例4: testPopulateMultiMap_remove2125

import org.apache.commons.collections4.map.MultiValueMap; //导入方法依赖的package包/类
@org.junit.Test(timeout = 1000)
public void testPopulateMultiMap_remove2125() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testPopulateMultiMap_remove2125");
    final List<X> list = new ArrayList<X>();
    list.add(new X(1 , "x1"));
    list.add(new X(2 , "x2"));
    list.add(new X(2 , "x3"));
    list.add(new X(5 , "x4"));
    list.add(new X(5 , "x5"));
    final MultiValueMap<java.lang.Integer, X> map = MultiValueMap.multiValueMap(new TreeMap<java.lang.Integer, java.util.Collection<X>>());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7893,list,7892,list.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7895,map,7894,map.totalSize());
    for (int i = 0 ; i < (list.size()) ; i++) {
        fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7897,map,7896,map.containsKey(list.get(i).key));
        fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7899,map,7898,map.containsValue(list.get(i)));
    }
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:19,代码来源:MapUtilsTest.java

示例5: testPopulateMultiMap_add2681

import org.apache.commons.collections4.map.MultiValueMap; //导入方法依赖的package包/类
@org.junit.Test(timeout = 1000)
public void testPopulateMultiMap_add2681() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testPopulateMultiMap_add2681");
    final List<X> list = new ArrayList<X>();
    list.add(new X(1 , "x1"));
    list.add(new X(2 , "x2"));
    list.add(new X(2 , "x3"));
    list.add(new X(5 , "x4"));
    list.add(new X(5 , "x5"));
    list.add(new X(5 , "x5"));
    final MultiValueMap<java.lang.Integer, X> map = MultiValueMap.multiValueMap(new TreeMap<java.lang.Integer, java.util.Collection<X>>());
    org.apache.commons.collections4.MapUtils.populateMap(map, list, new Transformer<X, java.lang.Integer>() {
        public Integer transform(X input) {
            return input.key;
        }
    }, org.apache.commons.collections4.TransformerUtils.<X>nopTransformer());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7893,list,7892,list.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7895,map,7894,map.totalSize());
    for (int i = 0 ; i < (list.size()) ; i++) {
        fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7897,map,7896,map.containsKey(list.get(i).key));
        fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7899,map,7898,map.containsValue(list.get(i)));
    }
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:25,代码来源:MapUtilsTest.java

示例6: testPopulateMultiMap_remove2124

import org.apache.commons.collections4.map.MultiValueMap; //导入方法依赖的package包/类
@org.junit.Test(timeout = 1000)
public void testPopulateMultiMap_remove2124() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testPopulateMultiMap_remove2124");
    final List<X> list = new ArrayList<X>();
    list.add(new X(2 , "x2"));
    list.add(new X(2 , "x3"));
    list.add(new X(5 , "x4"));
    list.add(new X(5 , "x5"));
    final MultiValueMap<java.lang.Integer, X> map = MultiValueMap.multiValueMap(new TreeMap<java.lang.Integer, java.util.Collection<X>>());
    org.apache.commons.collections4.MapUtils.populateMap(map, list, new Transformer<X, java.lang.Integer>() {
        public Integer transform(X input) {
            return input.key;
        }
    }, org.apache.commons.collections4.TransformerUtils.<X>nopTransformer());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7893,list,7892,list.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7895,map,7894,map.totalSize());
    for (int i = 0 ; i < (list.size()) ; i++) {
        fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7897,map,7896,map.containsKey(list.get(i).key));
        fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7899,map,7898,map.containsValue(list.get(i)));
    }
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:23,代码来源:MapUtilsTest.java

示例7: testPopulateMultiMap_remove2126

import org.apache.commons.collections4.map.MultiValueMap; //导入方法依赖的package包/类
@org.junit.Test(timeout = 1000)
public void testPopulateMultiMap_remove2126() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testPopulateMultiMap_remove2126");
    final List<X> list = new ArrayList<X>();
    list.add(new X(1 , "x1"));
    list.add(new X(2 , "x2"));
    list.add(new X(2 , "x3"));
    list.add(new X(5 , "x4"));
    list.add(new X(5 , "x5"));
    final MultiValueMap<java.lang.Integer, X> map = MultiValueMap.multiValueMap(new TreeMap<java.lang.Integer, java.util.Collection<X>>());
    org.apache.commons.collections4.MapUtils.populateMap(map, list, new Transformer<X, java.lang.Integer>() {
        public Integer transform(X input) {
            return input.key;
        }
    }, org.apache.commons.collections4.TransformerUtils.<X>nopTransformer());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7893,list,7892,list.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7895,map,7894,map.totalSize());
    for (int i = 0 ; i < (list.size()) ; i++) {
        fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7897,map,7896,map.containsKey(list.get(i).key));
        fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7899,map,7898,map.containsValue(list.get(i)));
    }
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:24,代码来源:MapUtilsTest.java

示例8: testPopulateMultiMap_literalMutation2796

import org.apache.commons.collections4.map.MultiValueMap; //导入方法依赖的package包/类
public void testPopulateMultiMap_literalMutation2796() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testPopulateMultiMap_literalMutation2796");
    final List<X> list = new ArrayList<X>();
    list.add(new X(1 , "foo"));
    list.add(new X(2 , "x2"));
    list.add(new X(2 , "x3"));
    list.add(new X(5 , "x4"));
    list.add(new X(5 , "x5"));
    final MultiValueMap<java.lang.Integer, X> map = MultiValueMap.multiValueMap(new TreeMap<java.lang.Integer, java.util.Collection<X>>());
    org.apache.commons.collections4.MapUtils.populateMap(map, list, new Transformer<X, java.lang.Integer>() {
        public Integer transform(X input) {
            return input.key;
        }
    }, org.apache.commons.collections4.TransformerUtils.<X>nopTransformer());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7893,list,7892,list.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7895,map,7894,map.totalSize());
    for (int i = 0 ; i < (list.size()) ; i++) {
        fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7897,map,7896,map.containsKey(list.get(i).key));
        fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7899,map,7898,map.containsValue(list.get(i)));
    }
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:23,代码来源:MapUtilsTest.java

示例9: testPopulateMultiMap_remove2123

import org.apache.commons.collections4.map.MultiValueMap; //导入方法依赖的package包/类
@org.junit.Test(timeout = 1000)
public void testPopulateMultiMap_remove2123() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testPopulateMultiMap_remove2123");
    final List<X> list = new ArrayList<X>();
    list.add(new X(2 , "x2"));
    list.add(new X(2 , "x3"));
    list.add(new X(5 , "x4"));
    list.add(new X(5 , "x5"));
    final MultiValueMap<java.lang.Integer, X> map = MultiValueMap.multiValueMap(new TreeMap<java.lang.Integer, java.util.Collection<X>>());
    org.apache.commons.collections4.MapUtils.populateMap(map, list, new Transformer<X, java.lang.Integer>() {
        public Integer transform(X input) {
            return input.key;
        }
    }, org.apache.commons.collections4.TransformerUtils.<X>nopTransformer());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7893,list,7892,list.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7895,map,7894,map.totalSize());
    for (int i = 0 ; i < (list.size()) ; i++) {
        fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7897,map,7896,map.containsKey(list.get(i).key));
        fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7899,map,7898,map.containsValue(list.get(i)));
    }
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:23,代码来源:MapUtilsTest.java

示例10: testPopulateMultiMap_literalMutation2798

import org.apache.commons.collections4.map.MultiValueMap; //导入方法依赖的package包/类
public void testPopulateMultiMap_literalMutation2798() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testPopulateMultiMap_literalMutation2798");
    final List<X> list = new ArrayList<X>();
    list.add(new X(1 , "x1"));
    list.add(new X(2 , "foo"));
    list.add(new X(2 , "x3"));
    list.add(new X(5 , "x4"));
    list.add(new X(5 , "x5"));
    final MultiValueMap<java.lang.Integer, X> map = MultiValueMap.multiValueMap(new TreeMap<java.lang.Integer, java.util.Collection<X>>());
    org.apache.commons.collections4.MapUtils.populateMap(map, list, new Transformer<X, java.lang.Integer>() {
        public Integer transform(X input) {
            return input.key;
        }
    }, org.apache.commons.collections4.TransformerUtils.<X>nopTransformer());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7893,list,7892,list.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7895,map,7894,map.totalSize());
    for (int i = 0 ; i < (list.size()) ; i++) {
        fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7897,map,7896,map.containsKey(list.get(i).key));
        fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7899,map,7898,map.containsValue(list.get(i)));
    }
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:23,代码来源:MapUtilsTest.java

示例11: testPopulateMultiMap_literalMutation2799

import org.apache.commons.collections4.map.MultiValueMap; //导入方法依赖的package包/类
public void testPopulateMultiMap_literalMutation2799() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testPopulateMultiMap_literalMutation2799");
    final List<X> list = new ArrayList<X>();
    list.add(new X(1 , "x1"));
    list.add(new X(2 , "x2"));
    list.add(new X(3 , "x3"));
    list.add(new X(5 , "x4"));
    list.add(new X(5 , "x5"));
    final MultiValueMap<java.lang.Integer, X> map = MultiValueMap.multiValueMap(new TreeMap<java.lang.Integer, java.util.Collection<X>>());
    org.apache.commons.collections4.MapUtils.populateMap(map, list, new Transformer<X, java.lang.Integer>() {
        public Integer transform(X input) {
            return input.key;
        }
    }, org.apache.commons.collections4.TransformerUtils.<X>nopTransformer());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7893,list,7892,list.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7895,map,7894,map.totalSize());
    for (int i = 0 ; i < (list.size()) ; i++) {
        fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7897,map,7896,map.containsKey(list.get(i).key));
        fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7899,map,7898,map.containsValue(list.get(i)));
    }
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:23,代码来源:MapUtilsTest.java

示例12: testPopulateMultiMap_literalMutation2800

import org.apache.commons.collections4.map.MultiValueMap; //导入方法依赖的package包/类
public void testPopulateMultiMap_literalMutation2800() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testPopulateMultiMap_literalMutation2800");
    final List<X> list = new ArrayList<X>();
    list.add(new X(1 , "x1"));
    list.add(new X(2 , "x2"));
    list.add(new X(2 , "foo"));
    list.add(new X(5 , "x4"));
    list.add(new X(5 , "x5"));
    final MultiValueMap<java.lang.Integer, X> map = MultiValueMap.multiValueMap(new TreeMap<java.lang.Integer, java.util.Collection<X>>());
    org.apache.commons.collections4.MapUtils.populateMap(map, list, new Transformer<X, java.lang.Integer>() {
        public Integer transform(X input) {
            return input.key;
        }
    }, org.apache.commons.collections4.TransformerUtils.<X>nopTransformer());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7893,list,7892,list.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7895,map,7894,map.totalSize());
    for (int i = 0 ; i < (list.size()) ; i++) {
        fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7897,map,7896,map.containsKey(list.get(i).key));
        fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7899,map,7898,map.containsValue(list.get(i)));
    }
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:23,代码来源:MapUtilsTest.java

示例13: testPopulateMultiMap_literalMutation2801

import org.apache.commons.collections4.map.MultiValueMap; //导入方法依赖的package包/类
public void testPopulateMultiMap_literalMutation2801() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testPopulateMultiMap_literalMutation2801");
    final List<X> list = new ArrayList<X>();
    list.add(new X(1 , "x1"));
    list.add(new X(2 , "x2"));
    list.add(new X(2 , "x3"));
    list.add(new X(4 , "x4"));
    list.add(new X(5 , "x5"));
    final MultiValueMap<java.lang.Integer, X> map = MultiValueMap.multiValueMap(new TreeMap<java.lang.Integer, java.util.Collection<X>>());
    org.apache.commons.collections4.MapUtils.populateMap(map, list, new Transformer<X, java.lang.Integer>() {
        public Integer transform(X input) {
            return input.key;
        }
    }, org.apache.commons.collections4.TransformerUtils.<X>nopTransformer());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7893,list,7892,list.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7895,map,7894,map.totalSize());
    for (int i = 0 ; i < (list.size()) ; i++) {
        fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7897,map,7896,map.containsKey(list.get(i).key));
        fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7899,map,7898,map.containsValue(list.get(i)));
    }
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:23,代码来源:MapUtilsTest.java

示例14: testPopulateMultiMap_literalMutation2802

import org.apache.commons.collections4.map.MultiValueMap; //导入方法依赖的package包/类
public void testPopulateMultiMap_literalMutation2802() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testPopulateMultiMap_literalMutation2802");
    final List<X> list = new ArrayList<X>();
    list.add(new X(1 , "x1"));
    list.add(new X(2 , "x2"));
    list.add(new X(2 , "x3"));
    list.add(new X(5 , "foo"));
    list.add(new X(5 , "x5"));
    final MultiValueMap<java.lang.Integer, X> map = MultiValueMap.multiValueMap(new TreeMap<java.lang.Integer, java.util.Collection<X>>());
    org.apache.commons.collections4.MapUtils.populateMap(map, list, new Transformer<X, java.lang.Integer>() {
        public Integer transform(X input) {
            return input.key;
        }
    }, org.apache.commons.collections4.TransformerUtils.<X>nopTransformer());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7893,list,7892,list.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7895,map,7894,map.totalSize());
    for (int i = 0 ; i < (list.size()) ; i++) {
        fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7897,map,7896,map.containsKey(list.get(i).key));
        fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7899,map,7898,map.containsValue(list.get(i)));
    }
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:23,代码来源:MapUtilsTest.java

示例15: testPopulateMultiMap_literalMutation2803

import org.apache.commons.collections4.map.MultiValueMap; //导入方法依赖的package包/类
public void testPopulateMultiMap_literalMutation2803() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testPopulateMultiMap_literalMutation2803");
    final List<X> list = new ArrayList<X>();
    list.add(new X(1 , "x1"));
    list.add(new X(2 , "x2"));
    list.add(new X(2 , "x3"));
    list.add(new X(5 , "x4"));
    list.add(new X(4 , "x5"));
    final MultiValueMap<java.lang.Integer, X> map = MultiValueMap.multiValueMap(new TreeMap<java.lang.Integer, java.util.Collection<X>>());
    org.apache.commons.collections4.MapUtils.populateMap(map, list, new Transformer<X, java.lang.Integer>() {
        public Integer transform(X input) {
            return input.key;
        }
    }, org.apache.commons.collections4.TransformerUtils.<X>nopTransformer());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7893,list,7892,list.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7895,map,7894,map.totalSize());
    for (int i = 0 ; i < (list.size()) ; i++) {
        fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7897,map,7896,map.containsKey(list.get(i).key));
        fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7899,map,7898,map.containsValue(list.get(i)));
    }
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:23,代码来源:MapUtilsTest.java


注:本文中的org.apache.commons.collections4.map.MultiValueMap.multiValueMap方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。