Java 类org.apache.commons.collections4.keyvalue.MultiKey 实例源码

项目:HCFCore    文件:MultiKeyMap.java   
/**
 * Stores the value against the specified multi-key.
 *
 * @param key1  the first key
 * @param key2  the second key
 * @param value  the value to store
 * @return the value previously mapped to this combined key, null if none
 */
public V put(final K key1, final K key2, final V value) {
    final int hashCode = hash(key1, key2);
    final int index = decorated().hashIndex(hashCode, decorated().data.length);
    AbstractHashedMap.HashEntry<MultiKey<? extends K>, V> entry = decorated().data[index];
    while (entry != null) {
        if (entry.hashCode == hashCode && isEqualKey(entry, key1, key2)) {
            final V oldValue = entry.getValue();
            decorated().updateEntry(entry, value);
            return oldValue;
        }
        entry = entry.next;
    }
    decorated().addMapping(index, hashCode, new MultiKey<K>(key1, key2), value);
    return null;
}
项目:HCFCore    文件:MultiKeyMap.java   
/**
 * Removes the specified multi-key from this map.
 *
 * @param key1  the first key
 * @param key2  the second key
 * @return the value mapped to the removed key, null if key not in map
 * @since 4.0 (previous name: remove(Object, Object))
 */
public V removeMultiKey(final Object key1, final Object key2) {
    final int hashCode = hash(key1, key2);
    final int index = decorated().hashIndex(hashCode, decorated().data.length);
    AbstractHashedMap.HashEntry<MultiKey<? extends K>, V> entry = decorated().data[index];
    AbstractHashedMap.HashEntry<MultiKey<? extends K>, V> previous = null;
    while (entry != null) {
        if (entry.hashCode == hashCode && isEqualKey(entry, key1, key2)) {
            final V oldValue = entry.getValue();
            decorated().removeMapping(entry, index, previous);
            return oldValue;
        }
        previous = entry;
        entry = entry.next;
    }
    return null;
}
项目:HCFCore    文件:MultiKeyMap.java   
/**
 * Stores the value against the specified multi-key.
 *
 * @param key1  the first key
 * @param key2  the second key
 * @param key3  the third key
 * @param value  the value to store
 * @return the value previously mapped to this combined key, null if none
 */
public V put(final K key1, final K key2, final K key3, final V value) {
    final int hashCode = hash(key1, key2, key3);
    final int index = decorated().hashIndex(hashCode, decorated().data.length);
    AbstractHashedMap.HashEntry<MultiKey<? extends K>, V> entry = decorated().data[index];
    while (entry != null) {
        if (entry.hashCode == hashCode && isEqualKey(entry, key1, key2, key3)) {
            final V oldValue = entry.getValue();
            decorated().updateEntry(entry, value);
            return oldValue;
        }
        entry = entry.next;
    }
    decorated().addMapping(index, hashCode, new MultiKey<K>(key1, key2, key3), value);
    return null;
}
项目:HCFCore    文件:MultiKeyMap.java   
/**
 * Removes the specified multi-key from this map.
 *
 * @param key1  the first key
 * @param key2  the second key
 * @param key3  the third key
 * @return the value mapped to the removed key, null if key not in map
 * @since 4.0 (previous name: remove(Object, Object, Object))
 */
public V removeMultiKey(final Object key1, final Object key2, final Object key3) {
    final int hashCode = hash(key1, key2, key3);
    final int index = decorated().hashIndex(hashCode, decorated().data.length);
    AbstractHashedMap.HashEntry<MultiKey<? extends K>, V> entry = decorated().data[index];
    AbstractHashedMap.HashEntry<MultiKey<? extends K>, V> previous = null;
    while (entry != null) {
        if (entry.hashCode == hashCode && isEqualKey(entry, key1, key2, key3)) {
            final V oldValue = entry.getValue();
            decorated().removeMapping(entry, index, previous);
            return oldValue;
        }
        previous = entry;
        entry = entry.next;
    }
    return null;
}
项目:HCFCore    文件:MultiKeyMap.java   
/**
 * Stores the value against the specified multi-key.
 *
 * @param key1  the first key
 * @param key2  the second key
 * @param key3  the third key
 * @param key4  the fourth key
 * @param value  the value to store
 * @return the value previously mapped to this combined key, null if none
 */
public V put(final K key1, final K key2, final K key3, final K key4, final V value) {
    final int hashCode = hash(key1, key2, key3, key4);
    final int index = decorated().hashIndex(hashCode, decorated().data.length);
    AbstractHashedMap.HashEntry<MultiKey<? extends K>, V> entry = decorated().data[index];
    while (entry != null) {
        if (entry.hashCode == hashCode && isEqualKey(entry, key1, key2, key3, key4)) {
            final V oldValue = entry.getValue();
            decorated().updateEntry(entry, value);
            return oldValue;
        }
        entry = entry.next;
    }
    decorated().addMapping(index, hashCode, new MultiKey<K>(key1, key2, key3, key4), value);
    return null;
}
项目:HCFCore    文件:MultiKeyMap.java   
/**
 * Removes the specified multi-key from this map.
 *
 * @param key1  the first key
 * @param key2  the second key
 * @param key3  the third key
 * @param key4  the fourth key
 * @return the value mapped to the removed key, null if key not in map
 * @since 4.0 (previous name: remove(Object, Object, Object, Object))
 */
public V removeMultiKey(final Object key1, final Object key2, final Object key3, final Object key4) {
    final int hashCode = hash(key1, key2, key3, key4);
    final int index = decorated().hashIndex(hashCode, decorated().data.length);
    AbstractHashedMap.HashEntry<MultiKey<? extends K>, V> entry = decorated().data[index];
    AbstractHashedMap.HashEntry<MultiKey<? extends K>, V> previous = null;
    while (entry != null) {
        if (entry.hashCode == hashCode && isEqualKey(entry, key1, key2, key3, key4)) {
            final V oldValue = entry.getValue();
            decorated().removeMapping(entry, index, previous);
            return oldValue;
        }
        previous = entry;
        entry = entry.next;
    }
    return null;
}
项目:HCFCore    文件:MultiKeyMap.java   
/**
 * Stores the value against the specified multi-key.
 *
 * @param key1  the first key
 * @param key2  the second key
 * @param key3  the third key
 * @param key4  the fourth key
 * @param key5  the fifth key
 * @param value  the value to store
 * @return the value previously mapped to this combined key, null if none
 */
public V put(final K key1, final K key2, final K key3, final K key4, final K key5, final V value) {
    final int hashCode = hash(key1, key2, key3, key4, key5);
    final int index = decorated().hashIndex(hashCode, decorated().data.length);
    AbstractHashedMap.HashEntry<MultiKey<? extends K>, V> entry = decorated().data[index];
    while (entry != null) {
        if (entry.hashCode == hashCode && isEqualKey(entry, key1, key2, key3, key4, key5)) {
            final V oldValue = entry.getValue();
            decorated().updateEntry(entry, value);
            return oldValue;
        }
        entry = entry.next;
    }
    decorated().addMapping(index, hashCode, new MultiKey<K>(key1, key2, key3, key4, key5), value);
    return null;
}
项目:HCFCore    文件:MultiKeyMap.java   
/**
 * Removes the specified multi-key from this map.
 *
 * @param key1  the first key
 * @param key2  the second key
 * @param key3  the third key
 * @param key4  the fourth key
 * @param key5  the fifth key
 * @return the value mapped to the removed key, null if key not in map
 * @since 4.0 (previous name: remove(Object, Object, Object, Object, Object))
 */
public V removeMultiKey(final Object key1, final Object key2, final Object key3,
                        final Object key4, final Object key5) {
    final int hashCode = hash(key1, key2, key3, key4, key5);
    final int index = decorated().hashIndex(hashCode, decorated().data.length);
    AbstractHashedMap.HashEntry<MultiKey<? extends K>, V> entry = decorated().data[index];
    AbstractHashedMap.HashEntry<MultiKey<? extends K>, V> previous = null;
    while (entry != null) {
        if (entry.hashCode == hashCode && isEqualKey(entry, key1, key2, key3, key4, key5)) {
            final V oldValue = entry.getValue();
            decorated().removeMapping(entry, index, previous);
            return oldValue;
        }
        previous = entry;
        entry = entry.next;
    }
    return null;
}
项目:HCFCore    文件:MultiKeyMap.java   
/**
 * 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;
}
项目:HCFCore    文件:MultiKeyMap.java   
/**
 * Removes all mappings where the first four keys are those specified.
 * <p>
 * This method removes all the mappings where the <code>MultiKey</code>
 * has four or more keys, and the first four match those specified.
 *
 * @param key1  the first key
 * @param key2  the second key
 * @param key3  the third key
 * @param key4  the fourth key
 * @return true if any elements were removed
 */
public boolean removeAll(final Object key1, final Object key2, final Object key3, final Object key4) {
    boolean modified = false;
    final MapIterator<MultiKey<? extends K>, V> it = mapIterator();
    while (it.hasNext()) {
        final MultiKey<? extends K> multi = it.next();
        if (multi.size() >= 4 &&
            (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))) &&
            (key4 == null ? multi.getKey(3) == null : key4.equals(multi.getKey(3)))) {
            it.remove();
            modified = true;
        }
    }
    return modified;
}
项目:HCFCore    文件:MultiKeyMap.java   
/**
 * Stores the value against the specified multi-key.
 *
 * @param key1  the first key
 * @param key2  the second key
 * @param value  the value to store
 * @return the value previously mapped to this combined key, null if none
 */
public V put(final K key1, final K key2, final V value) {
    final int hashCode = hash(key1, key2);
    final int index = decorated().hashIndex(hashCode, decorated().data.length);
    AbstractHashedMap.HashEntry<MultiKey<? extends K>, V> entry = decorated().data[index];
    while (entry != null) {
        if (entry.hashCode == hashCode && isEqualKey(entry, key1, key2)) {
            final V oldValue = entry.getValue();
            decorated().updateEntry(entry, value);
            return oldValue;
        }
        entry = entry.next;
    }
    decorated().addMapping(index, hashCode, new MultiKey<K>(key1, key2), value);
    return null;
}
项目:HCFCore    文件:MultiKeyMap.java   
/**
 * Removes the specified multi-key from this map.
 *
 * @param key1  the first key
 * @param key2  the second key
 * @return the value mapped to the removed key, null if key not in map
 * @since 4.0 (previous name: remove(Object, Object))
 */
public V removeMultiKey(final Object key1, final Object key2) {
    final int hashCode = hash(key1, key2);
    final int index = decorated().hashIndex(hashCode, decorated().data.length);
    AbstractHashedMap.HashEntry<MultiKey<? extends K>, V> entry = decorated().data[index];
    AbstractHashedMap.HashEntry<MultiKey<? extends K>, V> previous = null;
    while (entry != null) {
        if (entry.hashCode == hashCode && isEqualKey(entry, key1, key2)) {
            final V oldValue = entry.getValue();
            decorated().removeMapping(entry, index, previous);
            return oldValue;
        }
        previous = entry;
        entry = entry.next;
    }
    return null;
}
项目:HCFCore    文件:MultiKeyMap.java   
/**
 * Stores the value against the specified multi-key.
 *
 * @param key1  the first key
 * @param key2  the second key
 * @param key3  the third key
 * @param value  the value to store
 * @return the value previously mapped to this combined key, null if none
 */
public V put(final K key1, final K key2, final K key3, final V value) {
    final int hashCode = hash(key1, key2, key3);
    final int index = decorated().hashIndex(hashCode, decorated().data.length);
    AbstractHashedMap.HashEntry<MultiKey<? extends K>, V> entry = decorated().data[index];
    while (entry != null) {
        if (entry.hashCode == hashCode && isEqualKey(entry, key1, key2, key3)) {
            final V oldValue = entry.getValue();
            decorated().updateEntry(entry, value);
            return oldValue;
        }
        entry = entry.next;
    }
    decorated().addMapping(index, hashCode, new MultiKey<K>(key1, key2, key3), value);
    return null;
}
项目:HCFCore    文件:MultiKeyMap.java   
/**
 * Removes the specified multi-key from this map.
 *
 * @param key1  the first key
 * @param key2  the second key
 * @param key3  the third key
 * @return the value mapped to the removed key, null if key not in map
 * @since 4.0 (previous name: remove(Object, Object, Object))
 */
public V removeMultiKey(final Object key1, final Object key2, final Object key3) {
    final int hashCode = hash(key1, key2, key3);
    final int index = decorated().hashIndex(hashCode, decorated().data.length);
    AbstractHashedMap.HashEntry<MultiKey<? extends K>, V> entry = decorated().data[index];
    AbstractHashedMap.HashEntry<MultiKey<? extends K>, V> previous = null;
    while (entry != null) {
        if (entry.hashCode == hashCode && isEqualKey(entry, key1, key2, key3)) {
            final V oldValue = entry.getValue();
            decorated().removeMapping(entry, index, previous);
            return oldValue;
        }
        previous = entry;
        entry = entry.next;
    }
    return null;
}
项目:HCFCore    文件:MultiKeyMap.java   
/**
 * Stores the value against the specified multi-key.
 *
 * @param key1  the first key
 * @param key2  the second key
 * @param key3  the third key
 * @param key4  the fourth key
 * @param value  the value to store
 * @return the value previously mapped to this combined key, null if none
 */
public V put(final K key1, final K key2, final K key3, final K key4, final V value) {
    final int hashCode = hash(key1, key2, key3, key4);
    final int index = decorated().hashIndex(hashCode, decorated().data.length);
    AbstractHashedMap.HashEntry<MultiKey<? extends K>, V> entry = decorated().data[index];
    while (entry != null) {
        if (entry.hashCode == hashCode && isEqualKey(entry, key1, key2, key3, key4)) {
            final V oldValue = entry.getValue();
            decorated().updateEntry(entry, value);
            return oldValue;
        }
        entry = entry.next;
    }
    decorated().addMapping(index, hashCode, new MultiKey<K>(key1, key2, key3, key4), value);
    return null;
}
项目:HCFCore    文件:MultiKeyMap.java   
/**
 * Removes the specified multi-key from this map.
 *
 * @param key1  the first key
 * @param key2  the second key
 * @param key3  the third key
 * @param key4  the fourth key
 * @return the value mapped to the removed key, null if key not in map
 * @since 4.0 (previous name: remove(Object, Object, Object, Object))
 */
public V removeMultiKey(final Object key1, final Object key2, final Object key3, final Object key4) {
    final int hashCode = hash(key1, key2, key3, key4);
    final int index = decorated().hashIndex(hashCode, decorated().data.length);
    AbstractHashedMap.HashEntry<MultiKey<? extends K>, V> entry = decorated().data[index];
    AbstractHashedMap.HashEntry<MultiKey<? extends K>, V> previous = null;
    while (entry != null) {
        if (entry.hashCode == hashCode && isEqualKey(entry, key1, key2, key3, key4)) {
            final V oldValue = entry.getValue();
            decorated().removeMapping(entry, index, previous);
            return oldValue;
        }
        previous = entry;
        entry = entry.next;
    }
    return null;
}
项目:HCFCore    文件:MultiKeyMap.java   
/**
 * Stores the value against the specified multi-key.
 *
 * @param key1  the first key
 * @param key2  the second key
 * @param key3  the third key
 * @param key4  the fourth key
 * @param key5  the fifth key
 * @param value  the value to store
 * @return the value previously mapped to this combined key, null if none
 */
public V put(final K key1, final K key2, final K key3, final K key4, final K key5, final V value) {
    final int hashCode = hash(key1, key2, key3, key4, key5);
    final int index = decorated().hashIndex(hashCode, decorated().data.length);
    AbstractHashedMap.HashEntry<MultiKey<? extends K>, V> entry = decorated().data[index];
    while (entry != null) {
        if (entry.hashCode == hashCode && isEqualKey(entry, key1, key2, key3, key4, key5)) {
            final V oldValue = entry.getValue();
            decorated().updateEntry(entry, value);
            return oldValue;
        }
        entry = entry.next;
    }
    decorated().addMapping(index, hashCode, new MultiKey<K>(key1, key2, key3, key4, key5), value);
    return null;
}
项目:HCFCore    文件:MultiKeyMap.java   
/**
 * Removes the specified multi-key from this map.
 *
 * @param key1  the first key
 * @param key2  the second key
 * @param key3  the third key
 * @param key4  the fourth key
 * @param key5  the fifth key
 * @return the value mapped to the removed key, null if key not in map
 * @since 4.0 (previous name: remove(Object, Object, Object, Object, Object))
 */
public V removeMultiKey(final Object key1, final Object key2, final Object key3,
                        final Object key4, final Object key5) {
    final int hashCode = hash(key1, key2, key3, key4, key5);
    final int index = decorated().hashIndex(hashCode, decorated().data.length);
    AbstractHashedMap.HashEntry<MultiKey<? extends K>, V> entry = decorated().data[index];
    AbstractHashedMap.HashEntry<MultiKey<? extends K>, V> previous = null;
    while (entry != null) {
        if (entry.hashCode == hashCode && isEqualKey(entry, key1, key2, key3, key4, key5)) {
            final V oldValue = entry.getValue();
            decorated().removeMapping(entry, index, previous);
            return oldValue;
        }
        previous = entry;
        entry = entry.next;
    }
    return null;
}
项目:HCFCore    文件:MultiKeyMap.java   
/**
 * 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;
}
项目:HCFCore    文件:MultiKeyMap.java   
/**
 * Removes all mappings where the first four keys are those specified.
 * <p>
 * This method removes all the mappings where the <code>MultiKey</code>
 * has four or more keys, and the first four match those specified.
 *
 * @param key1  the first key
 * @param key2  the second key
 * @param key3  the third key
 * @param key4  the fourth key
 * @return true if any elements were removed
 */
public boolean removeAll(final Object key1, final Object key2, final Object key3, final Object key4) {
    boolean modified = false;
    final MapIterator<MultiKey<? extends K>, V> it = mapIterator();
    while (it.hasNext()) {
        final MultiKey<? extends K> multi = it.next();
        if (multi.size() >= 4 &&
            (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))) &&
            (key4 == null ? multi.getKey(3) == null : key4.equals(multi.getKey(3)))) {
            it.remove();
            modified = true;
        }
    }
    return modified;
}
项目:EasyAppleSyncAdapter    文件:MemoryCookieStore.java   
@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;
}
项目:truffle-hog    文件:NetworkIOPort.java   
@Override
synchronized public void writeConnection(IConnection connection) {

    final MultiKey<IAddress> connectionKey = new MultiKey<>(connection.getSrc().getAddress(), connection.getDest().getAddress());

    if (delegate.addEdge(connection, connection.getSrc(), connection.getDest())) {

        final EdgeStatisticsComponent edgeStat = connection.getComponent(EdgeStatisticsComponent.class);
        if (edgeStat != null) {
            Platform.runLater(() -> {
                maxTrafficBinding.bindProperty(edgeStat.getTrafficProperty());
            });

        }
        idConnectionMap.put(connectionKey, connection);
    }
}
项目:sdcct    文件:FhirResourceParamProcessorImpl.java   
@Override
protected void buildNumberResourceParam(String type, Map<MultiKey<Serializable>, ResourceParam<?>> resourceParams, String name,
    ResourceParamMetadata resourceParamMetadata, XdmItem item, FhirResource entity) throws Exception {
    Object itemValue = this.decodeNode(((XdmNode) item));
    BigDecimal value = null;

    if (itemValue instanceof DecimalType) {
        value = ((DecimalType) itemValue).getValue();
    } else if (itemValue instanceof IntegerType) {
        value = BigDecimal.valueOf(((IntegerType) itemValue).getValue());
    } else if (itemValue instanceof PositiveIntType) {
        value = new BigDecimal(((PositiveIntType) itemValue).getValue());
    } else if (itemValue instanceof UnsignedIntType) {
        value = new BigDecimal(((UnsignedIntType) itemValue).getValue());
    } else {
        super.buildNumberResourceParam(type, resourceParams, name, resourceParamMetadata, item, entity);
    }

    resourceParams.put(new MultiKey<>(name, value), new NumberResourceParamImpl(entity, name, value));
}
项目:sdcct    文件:FhirResourceParamProcessorImpl.java   
@Override
protected void buildStringResourceParam(String type, Map<MultiKey<Serializable>, ResourceParam<?>> resourceParams, String name,
    ResourceParamMetadata resourceParamMetadata, XdmItem item, FhirResource entity) throws Exception {
    Object itemValue = this.decodeNode(((XdmNode) item));
    String value = null;

    if (itemValue instanceof CodeType) {
        value = ((CodeType) itemValue).getValue();
    } else if (itemValue instanceof IdType) {
        value = ((IdType) itemValue).getValue();
    } else if (itemValue instanceof StringType) {
        value = ((StringType) itemValue).getValue();
    } else {
        super.buildStringResourceParam(type, resourceParams, name, resourceParamMetadata, item, entity);
    }

    resourceParams.put(new MultiKey<>(name, value), new StringResourceParamImpl(entity, name, value));
}
项目:sdcct    文件:FhirResourceParamProcessorImpl.java   
@Override
protected void buildUriResourceParam(String type, Map<MultiKey<Serializable>, ResourceParam<?>> resourceParams, String name,
    ResourceParamMetadata resourceParamMetadata, XdmItem item, FhirResource entity) throws Exception {
    Object itemValue = this.decodeNode(((XdmNode) item));
    URI value = null;

    if (itemValue instanceof UriType) {
        value = URI.create(((UriType) itemValue).getValue());
    } else if (itemValue instanceof StringType) {
        value = URI.create(((StringType) itemValue).getValue());
    } else {
        super.buildUriResourceParam(type, resourceParams, name, resourceParamMetadata, item, entity);
    }

    resourceParams.put(new MultiKey<>(name, value), new UriResourceParamImpl(entity, false, name, value));
}
项目:sosiefier    文件:MultiKeyMapTest.java   
@SuppressWarnings(value = "unchecked")
@org.junit.Test(timeout = 1000)
public void testLRUMultiKeyMap_add460() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testLRUMultiKeyMap_add460");
    final MultiKeyMap<K, V> map = MultiKeyMap.multiKeyMap(new org.apache.commons.collections4.map.LRUMap<org.apache.commons.collections4.keyvalue.MultiKey<? extends K>, V>(2));
    map.put(((K)(I1)), ((K)(I2)), ((V)("1-2")));
    map.put(((K)(I1)), ((K)(I2)), ((V)("1-2")));
    map.put(((K)(I1)), ((K)(I3)), ((V)("1-1")));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1115,map,1114,map.size());
    map.put(((K)(I1)), ((K)(I4)), ((V)("1-4")));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1117,map,1116,map.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1119,map,1118,map.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I3));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1121,map,1120,map.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I4));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1123,map,1122,map.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I2));
    final MultiKeyMap<K, V> cloned = map.clone();
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1125,map,1124,map.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1127,cloned,1126,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I3));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1129,cloned,1128,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I4));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1131,cloned,1130,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I2));
    cloned.put(((K)(I1)), ((K)(I5)), ((V)("1-5")));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1133,cloned,1132,cloned.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1135,cloned,1134,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I4));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1137,cloned,1136,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I5));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:MultiKeyMapTest.java   
@SuppressWarnings(value = "unchecked")
@org.junit.Test(timeout = 1000)
public void testLRUMultiKeyMap_add461() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testLRUMultiKeyMap_add461");
    final MultiKeyMap<K, V> map = MultiKeyMap.multiKeyMap(new org.apache.commons.collections4.map.LRUMap<org.apache.commons.collections4.keyvalue.MultiKey<? extends K>, V>(2));
    map.put(((K)(I1)), ((K)(I2)), ((V)("1-2")));
    map.put(((K)(I1)), ((K)(I3)), ((V)("1-1")));
    map.put(((K)(I1)), ((K)(I3)), ((V)("1-1")));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1115,map,1114,map.size());
    map.put(((K)(I1)), ((K)(I4)), ((V)("1-4")));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1117,map,1116,map.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1119,map,1118,map.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I3));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1121,map,1120,map.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I4));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1123,map,1122,map.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I2));
    final MultiKeyMap<K, V> cloned = map.clone();
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1125,map,1124,map.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1127,cloned,1126,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I3));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1129,cloned,1128,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I4));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1131,cloned,1130,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I2));
    cloned.put(((K)(I1)), ((K)(I5)), ((V)("1-5")));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1133,cloned,1132,cloned.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1135,cloned,1134,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I4));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1137,cloned,1136,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I5));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:MultiKeyMapTest.java   
@SuppressWarnings(value = "unchecked")
@org.junit.Test(timeout = 1000)
public void testLRUMultiKeyMap_add462() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testLRUMultiKeyMap_add462");
    final MultiKeyMap<K, V> map = MultiKeyMap.multiKeyMap(new org.apache.commons.collections4.map.LRUMap<org.apache.commons.collections4.keyvalue.MultiKey<? extends K>, V>(2));
    map.put(((K)(I1)), ((K)(I2)), ((V)("1-2")));
    map.put(((K)(I1)), ((K)(I3)), ((V)("1-1")));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1115,map,1114,map.size());
    map.put(((K)(I1)), ((K)(I4)), ((V)("1-4")));
    map.put(((K)(I1)), ((K)(I4)), ((V)("1-4")));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1117,map,1116,map.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1119,map,1118,map.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I3));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1121,map,1120,map.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I4));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1123,map,1122,map.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I2));
    final MultiKeyMap<K, V> cloned = map.clone();
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1125,map,1124,map.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1127,cloned,1126,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I3));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1129,cloned,1128,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I4));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1131,cloned,1130,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I2));
    cloned.put(((K)(I1)), ((K)(I5)), ((V)("1-5")));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1133,cloned,1132,cloned.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1135,cloned,1134,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I4));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1137,cloned,1136,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I5));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:MultiKeyMapTest.java   
@SuppressWarnings(value = "unchecked")
@org.junit.Test(timeout = 1000)
public void testLRUMultiKeyMap_add463() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testLRUMultiKeyMap_add463");
    final MultiKeyMap<K, V> map = MultiKeyMap.multiKeyMap(new org.apache.commons.collections4.map.LRUMap<org.apache.commons.collections4.keyvalue.MultiKey<? extends K>, V>(2));
    map.put(((K)(I1)), ((K)(I2)), ((V)("1-2")));
    map.put(((K)(I1)), ((K)(I3)), ((V)("1-1")));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1115,map,1114,map.size());
    map.put(((K)(I1)), ((K)(I4)), ((V)("1-4")));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1117,map,1116,map.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1119,map,1118,map.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I3));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1121,map,1120,map.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I4));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1123,map,1122,map.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I2));
    final MultiKeyMap<K, V> cloned = map.clone();
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1125,map,1124,map.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1127,cloned,1126,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I3));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1129,cloned,1128,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I4));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1131,cloned,1130,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I2));
    cloned.put(((K)(I1)), ((K)(I5)), ((V)("1-5")));
    cloned.put(((K)(I1)), ((K)(I5)), ((V)("1-5")));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1133,cloned,1132,cloned.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1135,cloned,1134,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I4));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1137,cloned,1136,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I5));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:MultiKeyMapTest.java   
@SuppressWarnings(value = "unchecked")
public void testLRUMultiKeyMap() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testLRUMultiKeyMap");
    final MultiKeyMap<K, V> map = MultiKeyMap.multiKeyMap(new org.apache.commons.collections4.map.LRUMap<org.apache.commons.collections4.keyvalue.MultiKey<? extends K>, V>(2));
    map.put(((K)(I1)), ((K)(I2)), ((V)("1-2")));
    map.put(((K)(I1)), ((K)(I3)), ((V)("1-1")));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1115,map,1114,map.size());
    map.put(((K)(I1)), ((K)(I4)), ((V)("1-4")));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1117,map,1116,map.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1119,map,1118,map.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I3));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1121,map,1120,map.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I4));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1123,map,1122,map.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I2));
    final MultiKeyMap<K, V> cloned = map.clone();
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1125,map,1124,map.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1127,cloned,1126,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I3));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1129,cloned,1128,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I4));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1131,cloned,1130,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I2));
    cloned.put(((K)(I1)), ((K)(I5)), ((V)("1-5")));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1133,cloned,1132,cloned.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1135,cloned,1134,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I4));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1137,cloned,1136,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I5));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:MultiKeyMapTest.java   
@SuppressWarnings(value = "unchecked")
public void testLRUMultiKeyMap_literalMutation382() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testLRUMultiKeyMap_literalMutation382");
    final MultiKeyMap<K, V> map = MultiKeyMap.multiKeyMap(new org.apache.commons.collections4.map.LRUMap<org.apache.commons.collections4.keyvalue.MultiKey<? extends K>, V>(3));
    map.put(((K)(I1)), ((K)(I2)), ((V)("1-2")));
    map.put(((K)(I1)), ((K)(I3)), ((V)("1-1")));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1115,map,1114,map.size());
    map.put(((K)(I1)), ((K)(I4)), ((V)("1-4")));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1117,map,1116,map.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1119,map,1118,map.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I3));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1121,map,1120,map.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I4));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1123,map,1122,map.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I2));
    final MultiKeyMap<K, V> cloned = map.clone();
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1125,map,1124,map.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1127,cloned,1126,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I3));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1129,cloned,1128,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I4));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1131,cloned,1130,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I2));
    cloned.put(((K)(I1)), ((K)(I5)), ((V)("1-5")));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1133,cloned,1132,cloned.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1135,cloned,1134,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I4));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1137,cloned,1136,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I5));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:MultiKeyMapTest.java   
@SuppressWarnings(value = "unchecked")
public void testLRUMultiKeyMap_literalMutation383() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testLRUMultiKeyMap_literalMutation383");
    final MultiKeyMap<K, V> map = MultiKeyMap.multiKeyMap(new org.apache.commons.collections4.map.LRUMap<org.apache.commons.collections4.keyvalue.MultiKey<? extends K>, V>(2));
    map.put(((K)(I1)), ((K)(I2)), ((V)("foo")));
    map.put(((K)(I1)), ((K)(I3)), ((V)("1-1")));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1115,map,1114,map.size());
    map.put(((K)(I1)), ((K)(I4)), ((V)("1-4")));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1117,map,1116,map.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1119,map,1118,map.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I3));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1121,map,1120,map.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I4));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1123,map,1122,map.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I2));
    final MultiKeyMap<K, V> cloned = map.clone();
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1125,map,1124,map.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1127,cloned,1126,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I3));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1129,cloned,1128,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I4));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1131,cloned,1130,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I2));
    cloned.put(((K)(I1)), ((K)(I5)), ((V)("1-5")));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1133,cloned,1132,cloned.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1135,cloned,1134,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I4));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1137,cloned,1136,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I5));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:MultiKeyMapTest.java   
@SuppressWarnings(value = "unchecked")
public void testLRUMultiKeyMap_literalMutation384() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testLRUMultiKeyMap_literalMutation384");
    final MultiKeyMap<K, V> map = MultiKeyMap.multiKeyMap(new org.apache.commons.collections4.map.LRUMap<org.apache.commons.collections4.keyvalue.MultiKey<? extends K>, V>(2));
    map.put(((K)(I1)), ((K)(I2)), ((V)("1-2")));
    map.put(((K)(I1)), ((K)(I3)), ((V)("foo")));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1115,map,1114,map.size());
    map.put(((K)(I1)), ((K)(I4)), ((V)("1-4")));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1117,map,1116,map.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1119,map,1118,map.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I3));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1121,map,1120,map.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I4));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1123,map,1122,map.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I2));
    final MultiKeyMap<K, V> cloned = map.clone();
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1125,map,1124,map.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1127,cloned,1126,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I3));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1129,cloned,1128,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I4));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1131,cloned,1130,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I2));
    cloned.put(((K)(I1)), ((K)(I5)), ((V)("1-5")));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1133,cloned,1132,cloned.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1135,cloned,1134,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I4));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1137,cloned,1136,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I5));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:MultiKeyMapTest.java   
@SuppressWarnings(value = "unchecked")
public void testLRUMultiKeyMap_literalMutation385() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testLRUMultiKeyMap_literalMutation385");
    final MultiKeyMap<K, V> map = MultiKeyMap.multiKeyMap(new org.apache.commons.collections4.map.LRUMap<org.apache.commons.collections4.keyvalue.MultiKey<? extends K>, V>(2));
    map.put(((K)(I1)), ((K)(I2)), ((V)("1-2")));
    map.put(((K)(I1)), ((K)(I3)), ((V)("1-1")));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1115,map,1114,map.size());
    map.put(((K)(I1)), ((K)(I4)), ((V)("foo")));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1117,map,1116,map.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1119,map,1118,map.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I3));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1121,map,1120,map.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I4));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1123,map,1122,map.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I2));
    final MultiKeyMap<K, V> cloned = map.clone();
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1125,map,1124,map.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1127,cloned,1126,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I3));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1129,cloned,1128,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I4));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1131,cloned,1130,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I2));
    cloned.put(((K)(I1)), ((K)(I5)), ((V)("1-5")));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1133,cloned,1132,cloned.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1135,cloned,1134,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I4));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1137,cloned,1136,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I5));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:MultiKeyMapTest.java   
@SuppressWarnings(value = "unchecked")
public void testLRUMultiKeyMap_literalMutation386() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testLRUMultiKeyMap_literalMutation386");
    final MultiKeyMap<K, V> map = MultiKeyMap.multiKeyMap(new org.apache.commons.collections4.map.LRUMap<org.apache.commons.collections4.keyvalue.MultiKey<? extends K>, V>(2));
    map.put(((K)(I1)), ((K)(I2)), ((V)("1-2")));
    map.put(((K)(I1)), ((K)(I3)), ((V)("1-1")));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1115,map,1114,map.size());
    map.put(((K)(I1)), ((K)(I4)), ((V)("1-4")));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1117,map,1116,map.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1119,map,1118,map.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I3));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1121,map,1120,map.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I4));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1123,map,1122,map.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I2));
    final MultiKeyMap<K, V> cloned = map.clone();
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1125,map,1124,map.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1127,cloned,1126,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I3));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1129,cloned,1128,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I4));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1131,cloned,1130,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I2));
    cloned.put(((K)(I1)), ((K)(I5)), ((V)("foo")));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1133,cloned,1132,cloned.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1135,cloned,1134,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I4));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1137,cloned,1136,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I5));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:MultiKeyMapTest.java   
@SuppressWarnings(value = "unchecked")
@org.junit.Test(timeout = 1000)
public void testLRUMultiKeyMap_remove359() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testLRUMultiKeyMap_remove359");
    final MultiKeyMap<K, V> map = MultiKeyMap.multiKeyMap(new org.apache.commons.collections4.map.LRUMap<org.apache.commons.collections4.keyvalue.MultiKey<? extends K>, V>(2));
    map.put(((K)(I1)), ((K)(I3)), ((V)("1-1")));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1115,map,1114,map.size());
    map.put(((K)(I1)), ((K)(I4)), ((V)("1-4")));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1117,map,1116,map.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1119,map,1118,map.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I3));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1121,map,1120,map.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I4));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1123,map,1122,map.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I2));
    final MultiKeyMap<K, V> cloned = map.clone();
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1125,map,1124,map.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1127,cloned,1126,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I3));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1129,cloned,1128,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I4));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1131,cloned,1130,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I2));
    cloned.put(((K)(I1)), ((K)(I5)), ((V)("1-5")));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1133,cloned,1132,cloned.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1135,cloned,1134,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I4));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1137,cloned,1136,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I5));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:MultiKeyMapTest.java   
@SuppressWarnings(value = "unchecked")
@org.junit.Test(timeout = 1000)
public void testLRUMultiKeyMap_remove360() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testLRUMultiKeyMap_remove360");
    final MultiKeyMap<K, V> map = MultiKeyMap.multiKeyMap(new org.apache.commons.collections4.map.LRUMap<org.apache.commons.collections4.keyvalue.MultiKey<? extends K>, V>(2));
    map.put(((K)(I1)), ((K)(I3)), ((V)("1-1")));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1115,map,1114,map.size());
    map.put(((K)(I1)), ((K)(I4)), ((V)("1-4")));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1117,map,1116,map.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1119,map,1118,map.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I3));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1121,map,1120,map.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I4));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1123,map,1122,map.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I2));
    final MultiKeyMap<K, V> cloned = map.clone();
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1125,map,1124,map.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1127,cloned,1126,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I3));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1129,cloned,1128,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I4));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1131,cloned,1130,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I2));
    cloned.put(((K)(I1)), ((K)(I5)), ((V)("1-5")));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1133,cloned,1132,cloned.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1135,cloned,1134,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I4));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1137,cloned,1136,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I5));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:MultiKeyMapTest.java   
@SuppressWarnings(value = "unchecked")
@org.junit.Test(timeout = 1000)
public void testLRUMultiKeyMap_remove361() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testLRUMultiKeyMap_remove361");
    final MultiKeyMap<K, V> map = MultiKeyMap.multiKeyMap(new org.apache.commons.collections4.map.LRUMap<org.apache.commons.collections4.keyvalue.MultiKey<? extends K>, V>(2));
    map.put(((K)(I1)), ((K)(I3)), ((V)("1-1")));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1115,map,1114,map.size());
    map.put(((K)(I1)), ((K)(I4)), ((V)("1-4")));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1117,map,1116,map.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1119,map,1118,map.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I3));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1121,map,1120,map.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I4));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1123,map,1122,map.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I2));
    final MultiKeyMap<K, V> cloned = map.clone();
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1125,map,1124,map.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1127,cloned,1126,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I3));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1129,cloned,1128,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I4));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1131,cloned,1130,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I2));
    cloned.put(((K)(I1)), ((K)(I5)), ((V)("1-5")));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1133,cloned,1132,cloned.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1135,cloned,1134,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I4));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1137,cloned,1136,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I5));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:MultiKeyMapTest.java   
@SuppressWarnings(value = "unchecked")
@org.junit.Test(timeout = 1000)
public void testLRUMultiKeyMap_remove362() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testLRUMultiKeyMap_remove362");
    final MultiKeyMap<K, V> map = MultiKeyMap.multiKeyMap(new org.apache.commons.collections4.map.LRUMap<org.apache.commons.collections4.keyvalue.MultiKey<? extends K>, V>(2));
    map.put(((K)(I1)), ((K)(I3)), ((V)("1-1")));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1115,map,1114,map.size());
    map.put(((K)(I1)), ((K)(I4)), ((V)("1-4")));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1117,map,1116,map.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1119,map,1118,map.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I3));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1121,map,1120,map.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I4));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1123,map,1122,map.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I2));
    final MultiKeyMap<K, V> cloned = map.clone();
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1125,map,1124,map.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1127,cloned,1126,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I3));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1129,cloned,1128,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I4));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1131,cloned,1130,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I2));
    cloned.put(((K)(I1)), ((K)(I5)), ((V)("1-5")));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1133,cloned,1132,cloned.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1135,cloned,1134,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I4));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1137,cloned,1136,cloned.containsKey(org.apache.commons.collections4.map.MultiKeyMapTest.I1, org.apache.commons.collections4.map.MultiKeyMapTest.I5));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:atl-pd-data    文件:ImageLoader.java   
public static MapSegment loadSegment(final MultiKey<Integer> imageKey, final boolean immediate) {
  MapSegment segment = segments.get(imageKey);
  if (segment != null) {
    return segment;
  } else if (immediate) {
    @SuppressWarnings("boxing")
    final Tile tile = new Tile(imageKey.getKey(0), imageKey.getKey(1), imageKey.getKey(2));
    BufferedImage image = loadImageFromDisk(tile);
    if (image == null) {
      try {
        image = ImageIO.read(new ByteArrayInputStream(loadImageBytesFromNet(tile)));
      } catch (final IOException e) {
        e.printStackTrace();
        return null;
      }
    }
    segment = new MapSegment(tile, image);
    ImageLoader.segments.put(imageKey, segment);
    return segment;
  }
  segmentsToLoadFromDisk.add(imageKey);
  return null;
}