本文整理汇总了Java中org.apache.commons.collections4.keyvalue.MultiKey类的典型用法代码示例。如果您正苦于以下问题:Java MultiKey类的具体用法?Java MultiKey怎么用?Java MultiKey使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
MultiKey类属于org.apache.commons.collections4.keyvalue包,在下文中一共展示了MultiKey类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: put
import org.apache.commons.collections4.keyvalue.MultiKey; //导入依赖的package包/类
/**
* 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;
}
示例2: removeMultiKey
import org.apache.commons.collections4.keyvalue.MultiKey; //导入依赖的package包/类
/**
* 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;
}
示例3: removeAll
import org.apache.commons.collections4.keyvalue.MultiKey; //导入依赖的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;
}
示例4: loadForRequest
import org.apache.commons.collections4.keyvalue.MultiKey; //导入依赖的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;
}
示例5: writeConnection
import org.apache.commons.collections4.keyvalue.MultiKey; //导入依赖的package包/类
@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);
}
}
示例6: buildNumberResourceParam
import org.apache.commons.collections4.keyvalue.MultiKey; //导入依赖的package包/类
@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));
}
示例7: buildStringResourceParam
import org.apache.commons.collections4.keyvalue.MultiKey; //导入依赖的package包/类
@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));
}
示例8: buildUriResourceParam
import org.apache.commons.collections4.keyvalue.MultiKey; //导入依赖的package包/类
@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));
}
示例9: testLRUMultiKeyMap_add460
import org.apache.commons.collections4.keyvalue.MultiKey; //导入依赖的package包/类
@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());
}
示例10: testLRUMultiKeyMap_add461
import org.apache.commons.collections4.keyvalue.MultiKey; //导入依赖的package包/类
@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());
}
示例11: testLRUMultiKeyMap_add462
import org.apache.commons.collections4.keyvalue.MultiKey; //导入依赖的package包/类
@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());
}
示例12: testLRUMultiKeyMap_add463
import org.apache.commons.collections4.keyvalue.MultiKey; //导入依赖的package包/类
@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());
}
示例13: testLRUMultiKeyMap
import org.apache.commons.collections4.keyvalue.MultiKey; //导入依赖的package包/类
@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());
}
示例14: testLRUMultiKeyMap_literalMutation382
import org.apache.commons.collections4.keyvalue.MultiKey; //导入依赖的package包/类
@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());
}
示例15: testLRUMultiKeyMap_literalMutation383
import org.apache.commons.collections4.keyvalue.MultiKey; //导入依赖的package包/类
@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());
}