本文整理汇总了Java中org.apache.commons.collections4.BidiMap.put方法的典型用法代码示例。如果您正苦于以下问题:Java BidiMap.put方法的具体用法?Java BidiMap.put怎么用?Java BidiMap.put使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.commons.collections4.BidiMap
的用法示例。
在下文中一共展示了BidiMap.put方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: generateSubstitutionAlphabet
import org.apache.commons.collections4.BidiMap; //导入方法依赖的package包/类
/**
* Generates map of substitution symbols for given language and substitution array
*
* @param language language to generate substitution for
* @param substitutions array of substitution characters
* @return bi-directional map with 1:1 alphabets for given language
*/
public static BidiMap<Character, Character> generateSubstitutionAlphabet(Language language, char[] substitutions) {
char[] languageAlphabet = getAlphabet(language);
if (!ArrayUtils.isSameLength(substitutions, languageAlphabet))
throw new IllegalArgumentException("Substitution array should have same alphabets as given language has");
BidiMap<Character, Character> substitutionAlphabet = new DualHashBidiMap<>();
for (int i = 0; i < languageAlphabet.length; i++) {
char key = languageAlphabet[i];
char value = substitutions[i];
substitutionAlphabet.put(key, value);
}
return substitutionAlphabet;
}
示例2: main
import org.apache.commons.collections4.BidiMap; //导入方法依赖的package包/类
public static void main(String[] args) {
String[] englishWords = {"one", "two", "three","ball","snow"};
String[] russianWords = {"jeden", "dwa", "trzy", "kula", "snieg"};
// Create Multiset
BidiMap<String, String> biMap = new DualHashBidiMap();
// Create Polish-English dictionary
int i = 0;
for(String englishWord: englishWords) {
biMap.put(englishWord, russianWords[i]);
i++;
}
// Print count words
System.out.println(biMap); // Print "{ball=kula, snow=snieg, one=jeden, two=dwa, three=trzy}" - in random orders
// Print unique words
System.out.println(biMap.keySet()); // print "[ball, snow, one, two, three]"- in random orders
System.out.println(biMap.values()); // print "[kula, snieg, jeden, dwa, trzy]" - in random orders
// Print translate by words
System.out.println("one = " + biMap.get("one")); // print one = jeden
System.out.println("two = " + biMap.get("two")); // print two = dwa
System.out.println("kula = " + biMap.getKey("kula")); // print kula = ball
System.out.println("snieg = " + biMap.getKey("snieg")); // print snieg = snow
System.out.println("empty = " + biMap.get("empty")); // print empty = null
// Print count word's pair
System.out.println(biMap.size()); //print 5
}
示例3: main
import org.apache.commons.collections4.BidiMap; //导入方法依赖的package包/类
public static void main(String[] args) {
String[] englishWords = {"one", "two", "three","ball","snow"};
String[] russianWords = {"jeden", "dwa", "trzy", "kula", "snieg"};
// Создаем Multiset
BidiMap<String, String> biMap = new DualHashBidiMap();
// создаем англо-польский словарь
int i = 0;
for(String englishWord: englishWords) {
biMap.put(englishWord, russianWords[i]);
i++;
}
// Выводим кол-вом вхождений слов
System.out.println(biMap); // напечатает {ball=kula, snow=snieg, one=jeden, two=dwa, three=trzy}- в произвольном порядке
// Выводим все уникальные слова
System.out.println(biMap.keySet()); // напечатает [ball, snow, one, two, three]- в произвольном порядке
System.out.println(biMap.values()); // напечатает [kula, snieg, jeden, dwa, trzy]- в произвольном порядке
// Выводим перевод по каждому слову
System.out.println("one = " + biMap.get("one")); // напечатает one = jeden
System.out.println("two = " + biMap.get("two")); // напечатает two = dwa
System.out.println("kula = " + biMap.getKey("kula")); // напечатает kula = ball
System.out.println("snieg = " + biMap.getKey("snieg")); // напечатает snieg = snow
System.out.println("empty = " + biMap.get("empty")); // напечатает empty = null
// Выводим общее количество переводов в словаре
System.out.println(biMap.size()); //напечатает 5
}
示例4: encode
import org.apache.commons.collections4.BidiMap; //导入方法依赖的package包/类
/**
* Encode string.
*
* @param original
* the original
* @return the string
*/
protected String encode(String original) {
BidiMap<String, String> codec = CODEC.get();
String key = codec.getKey(original);
if (key == null) {
key = Integer.toHexString(codec.size());
codec.put(key, original);
}
return key;
}
示例5: getGUILanguageStrings
import org.apache.commons.collections4.BidiMap; //导入方法依赖的package包/类
/**
*
*
* @return
*/
public BidiMap<String, String> getGUILanguageStrings() {
final BidiMap<String, String> langs = new DualHashBidiMap<String, String>();
final String[] langsFromProp = getProp(AVAILABLE_LOCALES).split(";");
for (String st : langsFromProp) {
final String[] parts = st.split("-");
langs.put(parts[0], parts[1]);
}
return langs;
}
示例6: testBidiPut_add1592
import org.apache.commons.collections4.BidiMap; //导入方法依赖的package包/类
@SuppressWarnings(value = "unchecked")
@Test(timeout = 1000)
public void testBidiPut_add1592() {
fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testBidiPut_add1592");
if ((!(isPutAddSupported())) || (!(isPutChangeSupported()))) {
return ;
}
final BidiMap<K, V> map = makeObject();
final BidiMap<V, K> inverse = map.inverseBidiMap();
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4936,map,4935,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),487,map,486,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4938,inverse,4937,inverse.size());
map.put(((K)("A")), ((V)("B")));
map.put(((K)("A")), ((V)("B")));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4940,map,4939,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4942,map,4941,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4944,inverse,4943,inverse.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4946,map,4945,map.get("A"));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4948,inverse,4947,inverse.get("B"));
map.put(((K)("A")), ((V)("C")));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4950,map,4949,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1952,map,1951,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4952,inverse,4951,inverse.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4954,map,4953,map.get("A"));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4956,inverse,4955,inverse.get("C"));
map.put(((K)("B")), ((V)("C")));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),386,map,385,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1802,map,1801,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4958,inverse,4957,inverse.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4960,map,4959,map.get("B"));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4962,inverse,4961,inverse.get("C"));
map.put(((K)("E")), ((V)("F")));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4964,map,4963,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4966,map,4965,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4968,inverse,4967,inverse.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4970,map,4969,map.get("E"));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4972,inverse,4971,inverse.get("F"));
fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
示例7: testBidiPut_add1593
import org.apache.commons.collections4.BidiMap; //导入方法依赖的package包/类
@SuppressWarnings(value = "unchecked")
@Test(timeout = 1000)
public void testBidiPut_add1593() {
fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testBidiPut_add1593");
if ((!(isPutAddSupported())) || (!(isPutChangeSupported()))) {
return ;
}
final BidiMap<K, V> map = makeObject();
final BidiMap<V, K> inverse = map.inverseBidiMap();
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4936,map,4935,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),487,map,486,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4938,inverse,4937,inverse.size());
map.put(((K)("A")), ((V)("B")));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4940,map,4939,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4942,map,4941,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4944,inverse,4943,inverse.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4946,map,4945,map.get("A"));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4948,inverse,4947,inverse.get("B"));
map.put(((K)("A")), ((V)("C")));
map.put(((K)("A")), ((V)("C")));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4950,map,4949,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1952,map,1951,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4952,inverse,4951,inverse.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4954,map,4953,map.get("A"));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4956,inverse,4955,inverse.get("C"));
map.put(((K)("B")), ((V)("C")));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),386,map,385,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1802,map,1801,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4958,inverse,4957,inverse.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4960,map,4959,map.get("B"));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4962,inverse,4961,inverse.get("C"));
map.put(((K)("E")), ((V)("F")));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4964,map,4963,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4966,map,4965,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4968,inverse,4967,inverse.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4970,map,4969,map.get("E"));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4972,inverse,4971,inverse.get("F"));
fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
示例8: testBidiPut_add1594
import org.apache.commons.collections4.BidiMap; //导入方法依赖的package包/类
@SuppressWarnings(value = "unchecked")
@Test(timeout = 1000)
public void testBidiPut_add1594() {
fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testBidiPut_add1594");
if ((!(isPutAddSupported())) || (!(isPutChangeSupported()))) {
return ;
}
final BidiMap<K, V> map = makeObject();
final BidiMap<V, K> inverse = map.inverseBidiMap();
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4936,map,4935,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),487,map,486,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4938,inverse,4937,inverse.size());
map.put(((K)("A")), ((V)("B")));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4940,map,4939,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4942,map,4941,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4944,inverse,4943,inverse.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4946,map,4945,map.get("A"));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4948,inverse,4947,inverse.get("B"));
map.put(((K)("A")), ((V)("C")));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4950,map,4949,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1952,map,1951,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4952,inverse,4951,inverse.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4954,map,4953,map.get("A"));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4956,inverse,4955,inverse.get("C"));
map.put(((K)("B")), ((V)("C")));
map.put(((K)("B")), ((V)("C")));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),386,map,385,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1802,map,1801,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4958,inverse,4957,inverse.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4960,map,4959,map.get("B"));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4962,inverse,4961,inverse.get("C"));
map.put(((K)("E")), ((V)("F")));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4964,map,4963,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4966,map,4965,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4968,inverse,4967,inverse.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4970,map,4969,map.get("E"));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4972,inverse,4971,inverse.get("F"));
fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
示例9: testBidiPut_add1595
import org.apache.commons.collections4.BidiMap; //导入方法依赖的package包/类
@SuppressWarnings(value = "unchecked")
@Test(timeout = 1000)
public void testBidiPut_add1595() {
fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testBidiPut_add1595");
if ((!(isPutAddSupported())) || (!(isPutChangeSupported()))) {
return ;
}
final BidiMap<K, V> map = makeObject();
final BidiMap<V, K> inverse = map.inverseBidiMap();
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4936,map,4935,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),487,map,486,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4938,inverse,4937,inverse.size());
map.put(((K)("A")), ((V)("B")));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4940,map,4939,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4942,map,4941,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4944,inverse,4943,inverse.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4946,map,4945,map.get("A"));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4948,inverse,4947,inverse.get("B"));
map.put(((K)("A")), ((V)("C")));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4950,map,4949,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1952,map,1951,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4952,inverse,4951,inverse.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4954,map,4953,map.get("A"));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4956,inverse,4955,inverse.get("C"));
map.put(((K)("B")), ((V)("C")));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),386,map,385,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1802,map,1801,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4958,inverse,4957,inverse.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4960,map,4959,map.get("B"));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4962,inverse,4961,inverse.get("C"));
map.put(((K)("E")), ((V)("F")));
map.put(((K)("E")), ((V)("F")));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4964,map,4963,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4966,map,4965,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4968,inverse,4967,inverse.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4970,map,4969,map.get("E"));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4972,inverse,4971,inverse.get("F"));
fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
示例10: testBidiPut
import org.apache.commons.collections4.BidiMap; //导入方法依赖的package包/类
@SuppressWarnings(value = "unchecked")
public void testBidiPut() {
fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testBidiPut");
if ((!(isPutAddSupported())) || (!(isPutChangeSupported()))) {
return ;
}
final BidiMap<K, V> map = makeObject();
final BidiMap<V, K> inverse = map.inverseBidiMap();
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4936,map,4935,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),487,map,486,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4938,inverse,4937,inverse.size());
map.put(((K)("A")), ((V)("B")));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4940,map,4939,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4942,map,4941,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4944,inverse,4943,inverse.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4946,map,4945,map.get("A"));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4948,inverse,4947,inverse.get("B"));
map.put(((K)("A")), ((V)("C")));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4950,map,4949,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1952,map,1951,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4952,inverse,4951,inverse.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4954,map,4953,map.get("A"));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4956,inverse,4955,inverse.get("C"));
map.put(((K)("B")), ((V)("C")));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),386,map,385,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1802,map,1801,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4958,inverse,4957,inverse.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4960,map,4959,map.get("B"));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4962,inverse,4961,inverse.get("C"));
map.put(((K)("E")), ((V)("F")));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4964,map,4963,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4966,map,4965,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4968,inverse,4967,inverse.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4970,map,4969,map.get("E"));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4972,inverse,4971,inverse.get("F"));
fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
示例11: testBidiPut_literalMutation1389
import org.apache.commons.collections4.BidiMap; //导入方法依赖的package包/类
@SuppressWarnings(value = "unchecked")
public void testBidiPut_literalMutation1389() {
fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testBidiPut_literalMutation1389");
if ((!(isPutAddSupported())) || (!(isPutChangeSupported()))) {
return ;
}
final BidiMap<K, V> map = makeObject();
final BidiMap<V, K> inverse = map.inverseBidiMap();
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4936,map,4935,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),487,map,486,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4938,inverse,4937,inverse.size());
map.put(((K)("foo")), ((V)("B")));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4940,map,4939,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4942,map,4941,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4944,inverse,4943,inverse.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4946,map,4945,map.get("A"));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4948,inverse,4947,inverse.get("B"));
map.put(((K)("A")), ((V)("C")));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4950,map,4949,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1952,map,1951,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4952,inverse,4951,inverse.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4954,map,4953,map.get("A"));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4956,inverse,4955,inverse.get("C"));
map.put(((K)("B")), ((V)("C")));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),386,map,385,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1802,map,1801,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4958,inverse,4957,inverse.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4960,map,4959,map.get("B"));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4962,inverse,4961,inverse.get("C"));
map.put(((K)("E")), ((V)("F")));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4964,map,4963,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4966,map,4965,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4968,inverse,4967,inverse.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4970,map,4969,map.get("E"));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4972,inverse,4971,inverse.get("F"));
fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
示例12: testBidiPut_literalMutation1390
import org.apache.commons.collections4.BidiMap; //导入方法依赖的package包/类
@SuppressWarnings(value = "unchecked")
public void testBidiPut_literalMutation1390() {
fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testBidiPut_literalMutation1390");
if ((!(isPutAddSupported())) || (!(isPutChangeSupported()))) {
return ;
}
final BidiMap<K, V> map = makeObject();
final BidiMap<V, K> inverse = map.inverseBidiMap();
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4936,map,4935,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),487,map,486,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4938,inverse,4937,inverse.size());
map.put(((K)("A")), ((V)("foo")));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4940,map,4939,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4942,map,4941,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4944,inverse,4943,inverse.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4946,map,4945,map.get("A"));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4948,inverse,4947,inverse.get("B"));
map.put(((K)("A")), ((V)("C")));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4950,map,4949,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1952,map,1951,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4952,inverse,4951,inverse.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4954,map,4953,map.get("A"));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4956,inverse,4955,inverse.get("C"));
map.put(((K)("B")), ((V)("C")));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),386,map,385,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1802,map,1801,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4958,inverse,4957,inverse.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4960,map,4959,map.get("B"));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4962,inverse,4961,inverse.get("C"));
map.put(((K)("E")), ((V)("F")));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4964,map,4963,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4966,map,4965,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4968,inverse,4967,inverse.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4970,map,4969,map.get("E"));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4972,inverse,4971,inverse.get("F"));
fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
示例13: testBidiPut_literalMutation1391
import org.apache.commons.collections4.BidiMap; //导入方法依赖的package包/类
@SuppressWarnings(value = "unchecked")
public void testBidiPut_literalMutation1391() {
fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testBidiPut_literalMutation1391");
if ((!(isPutAddSupported())) || (!(isPutChangeSupported()))) {
return ;
}
final BidiMap<K, V> map = makeObject();
final BidiMap<V, K> inverse = map.inverseBidiMap();
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4936,map,4935,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),487,map,486,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4938,inverse,4937,inverse.size());
map.put(((K)("A")), ((V)("B")));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4940,map,4939,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4942,map,4941,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4944,inverse,4943,inverse.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4946,map,4945,map.get("A"));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4948,inverse,4947,inverse.get("B"));
map.put(((K)("foo")), ((V)("C")));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4950,map,4949,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1952,map,1951,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4952,inverse,4951,inverse.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4954,map,4953,map.get("A"));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4956,inverse,4955,inverse.get("C"));
map.put(((K)("B")), ((V)("C")));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),386,map,385,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1802,map,1801,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4958,inverse,4957,inverse.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4960,map,4959,map.get("B"));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4962,inverse,4961,inverse.get("C"));
map.put(((K)("E")), ((V)("F")));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4964,map,4963,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4966,map,4965,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4968,inverse,4967,inverse.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4970,map,4969,map.get("E"));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4972,inverse,4971,inverse.get("F"));
fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
示例14: testBidiPut_literalMutation1392
import org.apache.commons.collections4.BidiMap; //导入方法依赖的package包/类
@SuppressWarnings(value = "unchecked")
public void testBidiPut_literalMutation1392() {
fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testBidiPut_literalMutation1392");
if ((!(isPutAddSupported())) || (!(isPutChangeSupported()))) {
return ;
}
final BidiMap<K, V> map = makeObject();
final BidiMap<V, K> inverse = map.inverseBidiMap();
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4936,map,4935,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),487,map,486,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4938,inverse,4937,inverse.size());
map.put(((K)("A")), ((V)("B")));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4940,map,4939,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4942,map,4941,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4944,inverse,4943,inverse.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4946,map,4945,map.get("A"));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4948,inverse,4947,inverse.get("B"));
map.put(((K)("A")), ((V)("foo")));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4950,map,4949,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1952,map,1951,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4952,inverse,4951,inverse.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4954,map,4953,map.get("A"));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4956,inverse,4955,inverse.get("C"));
map.put(((K)("B")), ((V)("C")));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),386,map,385,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1802,map,1801,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4958,inverse,4957,inverse.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4960,map,4959,map.get("B"));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4962,inverse,4961,inverse.get("C"));
map.put(((K)("E")), ((V)("F")));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4964,map,4963,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4966,map,4965,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4968,inverse,4967,inverse.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4970,map,4969,map.get("E"));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4972,inverse,4971,inverse.get("F"));
fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
示例15: testBidiPut_literalMutation1393
import org.apache.commons.collections4.BidiMap; //导入方法依赖的package包/类
@SuppressWarnings(value = "unchecked")
public void testBidiPut_literalMutation1393() {
fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testBidiPut_literalMutation1393");
if ((!(isPutAddSupported())) || (!(isPutChangeSupported()))) {
return ;
}
final BidiMap<K, V> map = makeObject();
final BidiMap<V, K> inverse = map.inverseBidiMap();
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4936,map,4935,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),487,map,486,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4938,inverse,4937,inverse.size());
map.put(((K)("A")), ((V)("B")));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4940,map,4939,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4942,map,4941,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4944,inverse,4943,inverse.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4946,map,4945,map.get("A"));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4948,inverse,4947,inverse.get("B"));
map.put(((K)("A")), ((V)("C")));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4950,map,4949,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1952,map,1951,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4952,inverse,4951,inverse.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4954,map,4953,map.get("A"));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4956,inverse,4955,inverse.get("C"));
map.put(((K)("foo")), ((V)("C")));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),386,map,385,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1802,map,1801,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4958,inverse,4957,inverse.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4960,map,4959,map.get("B"));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4962,inverse,4961,inverse.get("C"));
map.put(((K)("E")), ((V)("F")));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4964,map,4963,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4966,map,4965,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4968,inverse,4967,inverse.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4970,map,4969,map.get("E"));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4972,inverse,4971,inverse.get("F"));
fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}