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


Java MapIterator类代码示例

本文整理汇总了Java中org.apache.commons.collections4.MapIterator的典型用法代码示例。如果您正苦于以下问题:Java MapIterator类的具体用法?Java MapIterator怎么用?Java MapIterator使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: removeAll

import org.apache.commons.collections4.MapIterator; //导入依赖的package包/类
/**
 * Removes all mappings where the first three keys are those specified.
 * <p>
 * This method removes all the mappings where the <code>MultiKey</code>
 * has three or more keys, and the first three match those specified.
 *
 * @param key1  the first key
 * @param key2  the second key
 * @param key3  the third key
 * @return true if any elements were removed
 */
public boolean removeAll(final Object key1, final Object key2, final Object key3) {
    boolean modified = false;
    final MapIterator<MultiKey<? extends K>, V> it = mapIterator();
    while (it.hasNext()) {
        final MultiKey<? extends K> multi = it.next();
        if (multi.size() >= 3 &&
            (key1 == null ? multi.getKey(0) == null : key1.equals(multi.getKey(0))) &&
            (key2 == null ? multi.getKey(1) == null : key2.equals(multi.getKey(1))) &&
            (key3 == null ? multi.getKey(2) == null : key3.equals(multi.getKey(2)))) {
            it.remove();
            modified = true;
        }
    }
    return modified;
}
 
开发者ID:funkemunky,项目名称:HCFCore,代码行数:27,代码来源:MultiKeyMap.java

示例2: doToString

import org.apache.commons.collections4.MapIterator; //导入依赖的package包/类
/**
 * Gets the string form of this map as per AbstractMap.
 *
 * @param type  the KEY or VALUE int
 * @return the string form of this map
 */
private String doToString(final DataElement dataElement) {
    if (nodeCount == 0) {
        return "{}";
    }
    final StringBuilder buf = new StringBuilder(nodeCount * 32);
    buf.append('{');
    final MapIterator<?, ?> it = getMapIterator(dataElement);
    boolean hasNext = it.hasNext();
    while (hasNext) {
        final Object key = it.next();
        final Object value = it.getValue();
        buf.append(key == this ? "(this Map)" : key)
           .append('=')
           .append(value == this ? "(this Map)" : value);

        hasNext = it.hasNext();
        if (hasNext) {
            buf.append(", ");
        }
    }

    buf.append('}');
    return buf.toString();
}
 
开发者ID:funkemunky,项目名称:HCFCore,代码行数:31,代码来源:TreeBidiMap.java

示例3: loadForRequest

import org.apache.commons.collections4.MapIterator; //导入依赖的package包/类
@Override
public List<Cookie> loadForRequest(HttpUrl url) {
    List<Cookie> cookies = new LinkedList<>();

    synchronized (storage) {
        MapIterator<MultiKey<? extends String>, Cookie> iter = storage.mapIterator();
        while (iter.hasNext()) {
            iter.next();
            Cookie cookie = iter.getValue();

            // remove expired cookies
            if (cookie.expiresAt() <= System.currentTimeMillis()) {
                iter.remove();
                continue;
            }

            // add applicable cookies
            if (cookie.matches(url)) {
                cookies.add(cookie);
            }
        }
    }

    return cookies;
}
 
开发者ID:6thsolution,项目名称:EasyAppleSyncAdapter,代码行数:26,代码来源:MemoryCookieStore.java

示例4: testMapIteratorRemoveGetValue

import org.apache.commons.collections4.MapIterator; //导入依赖的package包/类
@Test(timeout = 1000)
public void testMapIteratorRemoveGetValue() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testMapIteratorRemoveGetValue");
    if (!(supportsRemove())) {
        return ;
    } 
    final MapIterator<K, V> it = makeObject();
    final Map<K, V> confirmed = getConfirmedMap();
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2656,it,2655,it.hasNext());
    final K key = it.next();
    it.remove();
    it.remove();
    confirmed.remove(key);
    verify();
    try {
        it.getValue();
    } catch (final IllegalStateException ex) {
    }
    verify();
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:22,代码来源:AbstractMapIteratorTest.java

示例5: testMapIteratorSetValue1_add271

import org.apache.commons.collections4.MapIterator; //导入依赖的package包/类
@SuppressWarnings(value = "unchecked")
@org.junit.Test(timeout = 1000)
public void testMapIteratorSetValue1_add271() throws Exception {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testMapIteratorSetValue1_add271");
    final Flat3Map<K, V> map = makeObject();
    map.put(((K)(ONE)), ((V)(TEN)));
    map.put(((K)(TWO)), ((V)(TWENTY)));
    map.put(((K)(TWO)), ((V)(TWENTY)));
    map.put(((K)(THREE)), ((V)(THIRTY)));
    final MapIterator<K, V> it = map.mapIterator();
    it.next();
    it.setValue(((V)("NewValue")));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),689,map,688,map.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),691,map,690,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.ONE));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),693,map,692,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.TWO));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),695,map,694,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.THREE));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),697,map,696,map.get(org.apache.commons.collections4.map.Flat3MapTest.ONE));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),698,org.apache.commons.collections4.map.Flat3MapTest.TWENTY);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),700,map,699,map.get(org.apache.commons.collections4.map.Flat3MapTest.TWO));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),701,org.apache.commons.collections4.map.Flat3MapTest.THIRTY);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),703,map,702,map.get(org.apache.commons.collections4.map.Flat3MapTest.THREE));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:24,代码来源:Flat3MapTest.java

示例6: testMapIteratorSetValue1_add272

import org.apache.commons.collections4.MapIterator; //导入依赖的package包/类
@SuppressWarnings(value = "unchecked")
@org.junit.Test(timeout = 1000)
public void testMapIteratorSetValue1_add272() throws Exception {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testMapIteratorSetValue1_add272");
    final Flat3Map<K, V> map = makeObject();
    map.put(((K)(ONE)), ((V)(TEN)));
    map.put(((K)(TWO)), ((V)(TWENTY)));
    map.put(((K)(THREE)), ((V)(THIRTY)));
    map.put(((K)(THREE)), ((V)(THIRTY)));
    final MapIterator<K, V> it = map.mapIterator();
    it.next();
    it.setValue(((V)("NewValue")));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),689,map,688,map.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),691,map,690,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.ONE));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),693,map,692,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.TWO));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),695,map,694,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.THREE));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),697,map,696,map.get(org.apache.commons.collections4.map.Flat3MapTest.ONE));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),698,org.apache.commons.collections4.map.Flat3MapTest.TWENTY);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),700,map,699,map.get(org.apache.commons.collections4.map.Flat3MapTest.TWO));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),701,org.apache.commons.collections4.map.Flat3MapTest.THIRTY);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),703,map,702,map.get(org.apache.commons.collections4.map.Flat3MapTest.THREE));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:24,代码来源:Flat3MapTest.java

示例7: testMapIteratorSetValue1_add274

import org.apache.commons.collections4.MapIterator; //导入依赖的package包/类
@SuppressWarnings(value = "unchecked")
@org.junit.Test(timeout = 1000)
public void testMapIteratorSetValue1_add274() throws Exception {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testMapIteratorSetValue1_add274");
    final Flat3Map<K, V> map = makeObject();
    map.put(((K)(ONE)), ((V)(TEN)));
    map.put(((K)(TWO)), ((V)(TWENTY)));
    map.put(((K)(THREE)), ((V)(THIRTY)));
    final MapIterator<K, V> it = map.mapIterator();
    it.next();
    it.setValue(((V)("NewValue")));
    it.setValue(((V)("NewValue")));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),689,map,688,map.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),691,map,690,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.ONE));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),693,map,692,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.TWO));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),695,map,694,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.THREE));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),697,map,696,map.get(org.apache.commons.collections4.map.Flat3MapTest.ONE));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),698,org.apache.commons.collections4.map.Flat3MapTest.TWENTY);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),700,map,699,map.get(org.apache.commons.collections4.map.Flat3MapTest.TWO));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),701,org.apache.commons.collections4.map.Flat3MapTest.THIRTY);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),703,map,702,map.get(org.apache.commons.collections4.map.Flat3MapTest.THREE));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:24,代码来源:Flat3MapTest.java

示例8: testMapIteratorSetValue1

import org.apache.commons.collections4.MapIterator; //导入依赖的package包/类
@SuppressWarnings(value = "unchecked")
public void testMapIteratorSetValue1() throws Exception {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testMapIteratorSetValue1");
    final Flat3Map<K, V> map = makeObject();
    map.put(((K)(ONE)), ((V)(TEN)));
    map.put(((K)(TWO)), ((V)(TWENTY)));
    map.put(((K)(THREE)), ((V)(THIRTY)));
    final MapIterator<K, V> it = map.mapIterator();
    it.next();
    it.setValue(((V)("NewValue")));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),689,map,688,map.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),691,map,690,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.ONE));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),693,map,692,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.TWO));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),695,map,694,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.THREE));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),697,map,696,map.get(org.apache.commons.collections4.map.Flat3MapTest.ONE));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),698,org.apache.commons.collections4.map.Flat3MapTest.TWENTY);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),700,map,699,map.get(org.apache.commons.collections4.map.Flat3MapTest.TWO));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),701,org.apache.commons.collections4.map.Flat3MapTest.THIRTY);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),703,map,702,map.get(org.apache.commons.collections4.map.Flat3MapTest.THREE));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:22,代码来源:Flat3MapTest.java

示例9: testMapIteratorSetValue1_literalMutation195

import org.apache.commons.collections4.MapIterator; //导入依赖的package包/类
@SuppressWarnings(value = "unchecked")
public void testMapIteratorSetValue1_literalMutation195() throws Exception {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testMapIteratorSetValue1_literalMutation195");
    final Flat3Map<K, V> map = makeObject();
    map.put(((K)(ONE)), ((V)(TEN)));
    map.put(((K)(TWO)), ((V)(TWENTY)));
    map.put(((K)(THREE)), ((V)(THIRTY)));
    final MapIterator<K, V> it = map.mapIterator();
    it.next();
    it.setValue(((V)("foo")));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),689,map,688,map.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),691,map,690,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.ONE));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),693,map,692,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.TWO));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),695,map,694,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.THREE));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),697,map,696,map.get(org.apache.commons.collections4.map.Flat3MapTest.ONE));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),698,org.apache.commons.collections4.map.Flat3MapTest.TWENTY);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),700,map,699,map.get(org.apache.commons.collections4.map.Flat3MapTest.TWO));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),701,org.apache.commons.collections4.map.Flat3MapTest.THIRTY);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),703,map,702,map.get(org.apache.commons.collections4.map.Flat3MapTest.THREE));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:22,代码来源:Flat3MapTest.java

示例10: testMapIteratorSetRemoveSet_add939

import org.apache.commons.collections4.MapIterator; //导入依赖的package包/类
@Test(timeout = 1000)
public void testMapIteratorSetRemoveSet_add939() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testMapIteratorSetRemoveSet_add939");
    if ((!(supportsSetValue())) || (!(supportsRemove()))) {
        return ;
    } 
    final V newValue = addSetValues()[0];
    final MapIterator<K, V> it = makeObject();
    final Map<K, V> confirmed = getConfirmedMap();
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2658,it,2657,it.hasNext());
    final K key = it.next();
    it.setValue(newValue);
    it.remove();
    confirmed.remove(key);
    confirmed.remove(key);
    verify();
    try {
        it.setValue(newValue);
    } catch (final IllegalStateException ex) {
    }
    verify();
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:24,代码来源:AbstractMapIteratorTest.java

示例11: testMapIteratorSetValue1_remove227

import org.apache.commons.collections4.MapIterator; //导入依赖的package包/类
@SuppressWarnings(value = "unchecked")
@org.junit.Test(timeout = 1000)
public void testMapIteratorSetValue1_remove227() throws Exception {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testMapIteratorSetValue1_remove227");
    final Flat3Map<K, V> map = makeObject();
    map.put(((K)(TWO)), ((V)(TWENTY)));
    map.put(((K)(THREE)), ((V)(THIRTY)));
    final MapIterator<K, V> it = map.mapIterator();
    it.next();
    it.setValue(((V)("NewValue")));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),689,map,688,map.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),691,map,690,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.ONE));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),693,map,692,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.TWO));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),695,map,694,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.THREE));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),697,map,696,map.get(org.apache.commons.collections4.map.Flat3MapTest.ONE));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),698,org.apache.commons.collections4.map.Flat3MapTest.TWENTY);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),700,map,699,map.get(org.apache.commons.collections4.map.Flat3MapTest.TWO));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),701,org.apache.commons.collections4.map.Flat3MapTest.THIRTY);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),703,map,702,map.get(org.apache.commons.collections4.map.Flat3MapTest.THREE));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:22,代码来源:Flat3MapTest.java

示例12: testMapIteratorSetValue1_remove228

import org.apache.commons.collections4.MapIterator; //导入依赖的package包/类
@SuppressWarnings(value = "unchecked")
@org.junit.Test(timeout = 1000)
public void testMapIteratorSetValue1_remove228() throws Exception {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testMapIteratorSetValue1_remove228");
    final Flat3Map<K, V> map = makeObject();
    map.put(((K)(TWO)), ((V)(TWENTY)));
    map.put(((K)(THREE)), ((V)(THIRTY)));
    final MapIterator<K, V> it = map.mapIterator();
    it.next();
    it.setValue(((V)("NewValue")));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),689,map,688,map.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),691,map,690,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.ONE));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),693,map,692,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.TWO));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),695,map,694,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.THREE));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),697,map,696,map.get(org.apache.commons.collections4.map.Flat3MapTest.ONE));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),698,org.apache.commons.collections4.map.Flat3MapTest.TWENTY);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),700,map,699,map.get(org.apache.commons.collections4.map.Flat3MapTest.TWO));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),701,org.apache.commons.collections4.map.Flat3MapTest.THIRTY);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),703,map,702,map.get(org.apache.commons.collections4.map.Flat3MapTest.THREE));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:22,代码来源:Flat3MapTest.java

示例13: testMapIteratorSetValue1_remove229

import org.apache.commons.collections4.MapIterator; //导入依赖的package包/类
@SuppressWarnings(value = "unchecked")
@org.junit.Test(timeout = 1000)
public void testMapIteratorSetValue1_remove229() throws Exception {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testMapIteratorSetValue1_remove229");
    final Flat3Map<K, V> map = makeObject();
    map.put(((K)(ONE)), ((V)(TEN)));
    map.put(((K)(TWO)), ((V)(TWENTY)));
    map.put(((K)(THREE)), ((V)(THIRTY)));
    final MapIterator<K, V> it = map.mapIterator();
    it.next();
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),689,map,688,map.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),691,map,690,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.ONE));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),693,map,692,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.TWO));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),695,map,694,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.THREE));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),697,map,696,map.get(org.apache.commons.collections4.map.Flat3MapTest.ONE));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),698,org.apache.commons.collections4.map.Flat3MapTest.TWENTY);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),700,map,699,map.get(org.apache.commons.collections4.map.Flat3MapTest.TWO));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),701,org.apache.commons.collections4.map.Flat3MapTest.THIRTY);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),703,map,702,map.get(org.apache.commons.collections4.map.Flat3MapTest.THREE));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:22,代码来源:Flat3MapTest.java

示例14: testMapIteratorSetValue2_add275

import org.apache.commons.collections4.MapIterator; //导入依赖的package包/类
@SuppressWarnings(value = "unchecked")
@org.junit.Test(timeout = 1000)
public void testMapIteratorSetValue2_add275() throws Exception {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testMapIteratorSetValue2_add275");
    final Flat3Map<K, V> map = makeObject();
    map.put(((K)(ONE)), ((V)(TEN)));
    map.put(((K)(ONE)), ((V)(TEN)));
    map.put(((K)(TWO)), ((V)(TWENTY)));
    map.put(((K)(THREE)), ((V)(THIRTY)));
    final MapIterator<K, V> it = map.mapIterator();
    it.next();
    it.next();
    it.setValue(((V)("NewValue")));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),705,map,704,map.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),707,map,706,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.ONE));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),709,map,708,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.TWO));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),711,map,710,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.THREE));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),712,org.apache.commons.collections4.map.Flat3MapTest.TEN);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),714,map,713,map.get(org.apache.commons.collections4.map.Flat3MapTest.ONE));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),716,map,715,map.get(org.apache.commons.collections4.map.Flat3MapTest.TWO));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),717,org.apache.commons.collections4.map.Flat3MapTest.THIRTY);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),719,map,718,map.get(org.apache.commons.collections4.map.Flat3MapTest.THREE));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:25,代码来源:Flat3MapTest.java

示例15: testMapIteratorSetValue2_add276

import org.apache.commons.collections4.MapIterator; //导入依赖的package包/类
@SuppressWarnings(value = "unchecked")
@org.junit.Test(timeout = 1000)
public void testMapIteratorSetValue2_add276() throws Exception {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testMapIteratorSetValue2_add276");
    final Flat3Map<K, V> map = makeObject();
    map.put(((K)(ONE)), ((V)(TEN)));
    map.put(((K)(TWO)), ((V)(TWENTY)));
    map.put(((K)(TWO)), ((V)(TWENTY)));
    map.put(((K)(THREE)), ((V)(THIRTY)));
    final MapIterator<K, V> it = map.mapIterator();
    it.next();
    it.next();
    it.setValue(((V)("NewValue")));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),705,map,704,map.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),707,map,706,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.ONE));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),709,map,708,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.TWO));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),711,map,710,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.THREE));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),712,org.apache.commons.collections4.map.Flat3MapTest.TEN);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),714,map,713,map.get(org.apache.commons.collections4.map.Flat3MapTest.ONE));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),716,map,715,map.get(org.apache.commons.collections4.map.Flat3MapTest.TWO));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),717,org.apache.commons.collections4.map.Flat3MapTest.THIRTY);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),719,map,718,map.get(org.apache.commons.collections4.map.Flat3MapTest.THREE));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:25,代码来源:Flat3MapTest.java


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