Java 类org.apache.commons.collections4.OrderedMap 实例源码

项目:HCFCore    文件:DualTreeBidiMap.java   
@Override
public K nextKey(final K key) {
    if (isEmpty()) {
        return null;
    }
    if (normalMap instanceof OrderedMap) {
        return ((OrderedMap<K, ?>) normalMap).nextKey(key);
    }
    final SortedMap<K, V> sm = (SortedMap<K, V>) normalMap;
    final Iterator<K> it = sm.tailMap(key).keySet().iterator();
    it.next();
    if (it.hasNext()) {
        return it.next();
    }
    return null;
}
项目:HCFCore    文件:DualTreeBidiMap.java   
@Override
public K nextKey(final K key) {
    if (isEmpty()) {
        return null;
    }
    if (normalMap instanceof OrderedMap) {
        return ((OrderedMap<K, ?>) normalMap).nextKey(key);
    }
    final SortedMap<K, V> sm = (SortedMap<K, V>) normalMap;
    final Iterator<K> it = sm.tailMap(key).keySet().iterator();
    it.next();
    if (it.hasNext()) {
        return it.next();
    }
    return null;
}
项目:sosiefier    文件:LinkedMapTest.java   
@SuppressWarnings(value = "unchecked")
@org.junit.Test(timeout = 1000)
public void testReset_add342() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testReset_add342");
    resetEmpty();
    resetEmpty();
    OrderedMap<K, V> ordered = getMap();
    ((ResettableIterator<K>)(ordered.mapIterator())).reset();
    resetFull();
    ordered = getMap();
    final List<K> list = new ArrayList<K>(ordered.keySet());
    final ResettableIterator<K> it = ((ResettableIterator<K>)(ordered.mapIterator()));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),921,list,920,list.get(0));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),923,it,922,it.next());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),925,list,924,list.get(1));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),927,it,926,it.next());
    it.reset();
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),929,list,928,list.get(0));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),931,it,930,it.next());
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:LinkedMapTest.java   
@SuppressWarnings(value = "unchecked")
@org.junit.Test(timeout = 1000)
public void testReset_add343() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testReset_add343");
    resetEmpty();
    OrderedMap<K, V> ordered = getMap();
    ((ResettableIterator<K>)(ordered.mapIterator())).reset();
    ((ResettableIterator<K>)(ordered.mapIterator())).reset();
    resetFull();
    ordered = getMap();
    final List<K> list = new ArrayList<K>(ordered.keySet());
    final ResettableIterator<K> it = ((ResettableIterator<K>)(ordered.mapIterator()));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),921,list,920,list.get(0));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),923,it,922,it.next());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),925,list,924,list.get(1));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),927,it,926,it.next());
    it.reset();
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),929,list,928,list.get(0));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),931,it,930,it.next());
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:LinkedMapTest.java   
@SuppressWarnings(value = "unchecked")
@org.junit.Test(timeout = 1000)
public void testReset_add344() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testReset_add344");
    resetEmpty();
    OrderedMap<K, V> ordered = getMap();
    ((ResettableIterator<K>)(ordered.mapIterator())).reset();
    resetFull();
    resetFull();
    ordered = getMap();
    final List<K> list = new ArrayList<K>(ordered.keySet());
    final ResettableIterator<K> it = ((ResettableIterator<K>)(ordered.mapIterator()));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),921,list,920,list.get(0));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),923,it,922,it.next());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),925,list,924,list.get(1));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),927,it,926,it.next());
    it.reset();
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),929,list,928,list.get(0));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),931,it,930,it.next());
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:LinkedMapTest.java   
@SuppressWarnings(value = "unchecked")
@org.junit.Test(timeout = 1000)
public void testReset_add345() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testReset_add345");
    resetEmpty();
    OrderedMap<K, V> ordered = getMap();
    ((ResettableIterator<K>)(ordered.mapIterator())).reset();
    resetFull();
    ordered = getMap();
    final List<K> list = new ArrayList<K>(ordered.keySet());
    final ResettableIterator<K> it = ((ResettableIterator<K>)(ordered.mapIterator()));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),921,list,920,list.get(0));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),923,it,922,it.next());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),925,list,924,list.get(1));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),927,it,926,it.next());
    it.reset();
    it.reset();
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),929,list,928,list.get(0));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),931,it,930,it.next());
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:LinkedMapTest.java   
@SuppressWarnings(value = "unchecked")
public void testReset() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testReset");
    resetEmpty();
    OrderedMap<K, V> ordered = getMap();
    ((ResettableIterator<K>)(ordered.mapIterator())).reset();
    resetFull();
    ordered = getMap();
    final List<K> list = new ArrayList<K>(ordered.keySet());
    final ResettableIterator<K> it = ((ResettableIterator<K>)(ordered.mapIterator()));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),921,list,920,list.get(0));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),923,it,922,it.next());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),925,list,924,list.get(1));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),927,it,926,it.next());
    it.reset();
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),929,list,928,list.get(0));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),931,it,930,it.next());
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:LinkedMapTest.java   
@SuppressWarnings(value = "unchecked")
@org.junit.Test(timeout = 1000)
public void testReset_remove277() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testReset_remove277");
    OrderedMap<K, V> ordered = getMap();
    ((ResettableIterator<K>)(ordered.mapIterator())).reset();
    resetFull();
    ordered = getMap();
    final List<K> list = new ArrayList<K>(ordered.keySet());
    final ResettableIterator<K> it = ((ResettableIterator<K>)(ordered.mapIterator()));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),921,list,920,list.get(0));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),923,it,922,it.next());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),925,list,924,list.get(1));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),927,it,926,it.next());
    it.reset();
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),929,list,928,list.get(0));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),931,it,930,it.next());
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:LinkedMapTest.java   
@SuppressWarnings(value = "unchecked")
@org.junit.Test(timeout = 1000)
public void testReset_remove278() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testReset_remove278");
    resetEmpty();
    OrderedMap<K, V> ordered = getMap();
    resetFull();
    ordered = getMap();
    final List<K> list = new ArrayList<K>(ordered.keySet());
    final ResettableIterator<K> it = ((ResettableIterator<K>)(ordered.mapIterator()));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),921,list,920,list.get(0));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),923,it,922,it.next());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),925,list,924,list.get(1));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),927,it,926,it.next());
    it.reset();
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),929,list,928,list.get(0));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),931,it,930,it.next());
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:LinkedMapTest.java   
@SuppressWarnings(value = "unchecked")
@org.junit.Test(timeout = 1000)
public void testReset_remove279() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testReset_remove279");
    resetEmpty();
    OrderedMap<K, V> ordered = getMap();
    ((ResettableIterator<K>)(ordered.mapIterator())).reset();
    ordered = getMap();
    final List<K> list = new ArrayList<K>(ordered.keySet());
    final ResettableIterator<K> it = ((ResettableIterator<K>)(ordered.mapIterator()));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),921,list,920,list.get(0));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),923,it,922,it.next());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),925,list,924,list.get(1));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),927,it,926,it.next());
    it.reset();
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),929,list,928,list.get(0));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),931,it,930,it.next());
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:LinkedMapTest.java   
@SuppressWarnings(value = "unchecked")
@org.junit.Test(timeout = 1000)
public void testReset_remove280() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testReset_remove280");
    resetEmpty();
    OrderedMap<K, V> ordered = getMap();
    resetFull();
    ordered = getMap();
    final List<K> list = new ArrayList<K>(ordered.keySet());
    final ResettableIterator<K> it = ((ResettableIterator<K>)(ordered.mapIterator()));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),921,list,920,list.get(0));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),923,it,922,it.next());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),925,list,924,list.get(1));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),927,it,926,it.next());
    it.reset();
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),929,list,928,list.get(0));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),931,it,930,it.next());
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:AbstractOrderedMapTest.java   
@Test(timeout = 1000)
public void testFirstKey() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testFirstKey");
    resetEmpty();
    resetEmpty();
    OrderedMap<K, V> ordered = getMap();
    try {
        ordered.firstKey();
    } catch (final NoSuchElementException ex) {
    }
    resetFull();
    ordered = getMap();
    final K confirmedFirst = confirmed.keySet().iterator().next();
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),340,confirmedFirst);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),342,ordered,341,ordered.firstKey());
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:AbstractOrderedMapTest.java   
@Test(timeout = 1000)
public void testFirstKey_add172() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testFirstKey_add172");
    resetEmpty();
    OrderedMap<K, V> ordered = getMap();
    try {
        ordered.firstKey();
        ordered.firstKey();
    } catch (final NoSuchElementException ex) {
    }
    resetFull();
    ordered = getMap();
    final K confirmedFirst = confirmed.keySet().iterator().next();
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),340,confirmedFirst);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),342,ordered,341,ordered.firstKey());
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:AbstractOrderedMapTest.java   
@Test(timeout = 1000)
public void testFirstKey_add173() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testFirstKey_add173");
    resetEmpty();
    OrderedMap<K, V> ordered = getMap();
    try {
        ordered.firstKey();
    } catch (final NoSuchElementException ex) {
    }
    resetFull();
    resetFull();
    ordered = getMap();
    final K confirmedFirst = confirmed.keySet().iterator().next();
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),340,confirmedFirst);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),342,ordered,341,ordered.firstKey());
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:AbstractOrderedMapTest.java   
@Test(timeout = 1000)
public void testLastKey() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testLastKey");
    resetEmpty();
    resetEmpty();
    OrderedMap<K, V> ordered = getMap();
    try {
        ordered.lastKey();
    } catch (final NoSuchElementException ex) {
    }
    resetFull();
    ordered = getMap();
    K confirmedLast = null;
    for (final Iterator<K> it = confirmed.keySet().iterator() ; it.hasNext() ; ) {
        confirmedLast = it.next();
    }
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),343,confirmedLast);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),345,ordered,344,ordered.lastKey());
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:AbstractOrderedMapTest.java   
@Test(timeout = 1000)
public void testLastKey_add175() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testLastKey_add175");
    resetEmpty();
    OrderedMap<K, V> ordered = getMap();
    try {
        ordered.lastKey();
        ordered.lastKey();
    } catch (final NoSuchElementException ex) {
    }
    resetFull();
    ordered = getMap();
    K confirmedLast = null;
    for (final Iterator<K> it = confirmed.keySet().iterator() ; it.hasNext() ; ) {
        confirmedLast = it.next();
    }
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),343,confirmedLast);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),345,ordered,344,ordered.lastKey());
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:AbstractOrderedMapTest.java   
@Test(timeout = 1000)
public void testLastKey_add176() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testLastKey_add176");
    resetEmpty();
    OrderedMap<K, V> ordered = getMap();
    try {
        ordered.lastKey();
    } catch (final NoSuchElementException ex) {
    }
    resetFull();
    resetFull();
    ordered = getMap();
    K confirmedLast = null;
    for (final Iterator<K> it = confirmed.keySet().iterator() ; it.hasNext() ; ) {
        confirmedLast = it.next();
    }
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),343,confirmedLast);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),345,ordered,344,ordered.lastKey());
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:AbstractOrderedMapTest.java   
@Test(timeout = 1000)
public void testLastKey_remove143() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testLastKey_remove143");
    OrderedMap<K, V> ordered = getMap();
    try {
        ordered.lastKey();
    } catch (final NoSuchElementException ex) {
    }
    resetFull();
    ordered = getMap();
    K confirmedLast = null;
    for (final Iterator<K> it = confirmed.keySet().iterator() ; it.hasNext() ; ) {
        confirmedLast = it.next();
    }
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),343,confirmedLast);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),345,ordered,344,ordered.lastKey());
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:AbstractOrderedMapTest.java   
@Test(timeout = 1000)
public void testLastKey_remove144() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testLastKey_remove144");
    resetEmpty();
    OrderedMap<K, V> ordered = getMap();
    try {
        ordered.lastKey();
    } catch (final NoSuchElementException ex) {
    }
    ordered = getMap();
    K confirmedLast = null;
    for (final Iterator<K> it = confirmed.keySet().iterator() ; it.hasNext() ; ) {
        confirmedLast = it.next();
    }
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),343,confirmedLast);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),345,ordered,344,ordered.lastKey());
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:HCFCore    文件:DualTreeBidiMap.java   
@Override
public K previousKey(final K key) {
    if (isEmpty()) {
        return null;
    }
    if (normalMap instanceof OrderedMap) {
        return ((OrderedMap<K, V>) normalMap).previousKey(key);
    }
    final SortedMap<K, V> sm = (SortedMap<K, V>) normalMap;
    final SortedMap<K, V> hm = sm.headMap(key);
    if (hm.isEmpty()) {
        return null;
    }
    return hm.lastKey();
}
项目:HCFCore    文件:DualTreeBidiMap.java   
@Override
public K previousKey(final K key) {
    if (isEmpty()) {
        return null;
    }
    if (normalMap instanceof OrderedMap) {
        return ((OrderedMap<K, V>) normalMap).previousKey(key);
    }
    final SortedMap<K, V> sm = (SortedMap<K, V>) normalMap;
    final SortedMap<K, V> hm = sm.headMap(key);
    if (hm.isEmpty()) {
        return null;
    }
    return hm.lastKey();
}
项目:sosiefier    文件:UnmodifiableOrderedMapTest.java   
public void testDecorateFactory() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testDecorateFactory");
    final OrderedMap<K, V> map = makeFullMap();
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1988,map);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1990,null,1989,org.apache.commons.collections4.map.UnmodifiableOrderedMap.unmodifiableOrderedMap(map));
    try {
        org.apache.commons.collections4.map.UnmodifiableOrderedMap.unmodifiableOrderedMap(null);
    } catch (final IllegalArgumentException ex) {
    }
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:UnmodifiableOrderedMapTest.java   
@Test(timeout = 1000)
public void testDecorateFactory_add600() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testDecorateFactory_add600");
    final OrderedMap<K, V> map = makeFullMap();
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1988,map);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1990,null,1989,org.apache.commons.collections4.map.UnmodifiableOrderedMap.unmodifiableOrderedMap(map));
    try {
        org.apache.commons.collections4.map.UnmodifiableOrderedMap.unmodifiableOrderedMap(null);
        org.apache.commons.collections4.map.UnmodifiableOrderedMap.unmodifiableOrderedMap(null);
    } catch (final IllegalArgumentException ex) {
    }
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:AbstractOrderedMapTest.java   
@Test(timeout = 1000)
public void testFirstKey_remove141() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testFirstKey_remove141");
    OrderedMap<K, V> ordered = getMap();
    try {
        ordered.firstKey();
    } catch (final NoSuchElementException ex) {
    }
    resetFull();
    ordered = getMap();
    final K confirmedFirst = confirmed.keySet().iterator().next();
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),340,confirmedFirst);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),342,ordered,341,ordered.firstKey());
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:AbstractOrderedMapTest.java   
@Test(timeout = 1000)
public void testFirstKey_remove142() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testFirstKey_remove142");
    resetEmpty();
    OrderedMap<K, V> ordered = getMap();
    try {
        ordered.firstKey();
    } catch (final NoSuchElementException ex) {
    }
    ordered = getMap();
    final K confirmedFirst = confirmed.keySet().iterator().next();
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),340,confirmedFirst);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),342,ordered,341,ordered.firstKey());
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
项目:sosiefier    文件:UnmodifiableOrderedMapIteratorTest.java   
@Override
@SuppressWarnings(value = "unchecked")
public OrderedMap<K, V> getMap() {
    final OrderedMap<K, V> testMap = org.apache.commons.collections4.map.ListOrderedMap.listOrderedMap(new java.util.HashMap<K, V>());
    testMap.put(((K)("A")), ((V)("a")));
    testMap.put(((K)("B")), ((V)("b")));
    testMap.put(((K)("C")), ((V)("c")));
    return testMap;
}
项目:windup    文件:MavenizationService.java   
/**
 * Sorts the submodules of given Pom so that their cross-dependencies are satisfied if built in that order.
 * TODO - MIGR-236.
 */
private OrderedMap<String, Pom> sortSubmodulesToReflectDependencies(Pom pom)
{
    Set<MavenCoord> dependenciesMet = new HashSet();
    dependenciesMet.add(pom.coord);

    SortedSet<MavenCoord> dependenciesSatisfied = new TreeSet<>();

    for (Dependency dep : pom.dependencies)
    {
        // Traverse the tree, depth-first, take items at node exit.
    }

    throw new UnsupportedOperationException("Not implemented yet.");
}
项目:sosiefier    文件:UnmodifiableOrderedMapTest.java   
@Override
public OrderedMap<K, V> makeObject() {
    return org.apache.commons.collections4.map.UnmodifiableOrderedMap.unmodifiableOrderedMap(org.apache.commons.collections4.map.ListOrderedMap.listOrderedMap(new java.util.HashMap<K, V>()));
}
项目:sosiefier    文件:UnmodifiableOrderedMapTest.java   
@Override
public OrderedMap<K, V> makeFullMap() {
    final OrderedMap<K, V> m = org.apache.commons.collections4.map.ListOrderedMap.listOrderedMap(new java.util.HashMap<K, V>());
    addSampleMappings(m);
    return org.apache.commons.collections4.map.UnmodifiableOrderedMap.unmodifiableOrderedMap(m);
}
项目:sosiefier    文件:SingletonMapTest.java   
@Override
public OrderedMap<K, V> makeObject() {
    return org.apache.commons.collections4.map.UnmodifiableOrderedMap.unmodifiableOrderedMap(org.apache.commons.collections4.map.ListOrderedMap.listOrderedMap(new java.util.HashMap<K, V>()));
}
项目:sosiefier    文件:AbstractOrderedMapTest.java   
/** 
     * {@inheritDoc}
     */
@Override
    public OrderedMap<K, V> makeFullMap() {
        return ((OrderedMap<K, V>)(super.makeFullMap()));
    }
项目:sosiefier    文件:AbstractOrderedMapTest.java   
@Override
public OrderedMap<K, V> getMap() {
    return org.apache.commons.collections4.map.AbstractOrderedMapTest.this.getMap();
}
项目:sosiefier    文件:AbstractOrderedMapTest.java   
/** 
     * {@inheritDoc}
     */
@Override
    public OrderedMap<K, V> getMap() {
        return ((OrderedMap<K, V>)(super.getMap()));
    }
项目:sosiefier    文件:PatriciaTrie2Test.java   
@Override
public OrderedMap<java.lang.String, V> makeObject() {
    return new PatriciaTrie<V>();
}
项目:windup    文件:Pom.java   
/**
 * Contains submodules of this Maven module.
 */
public OrderedMap<String, Pom> getSubmodules()
{
    return submodules;
}
项目:windup    文件:Pom.java   
/**
 * Contains submodules of this Maven module.
 */
public Pom setSubmodules(OrderedMap<String, Pom> submodules)
{
    this.submodules = submodules;
    return this;
}
项目:HCFCore    文件:UnmodifiableOrderedMap.java   
/**
 * Factory method to create an unmodifiable sorted map.
 *
 * @param <K>  the key type
 * @param <V>  the value type
 * @param map  the map to decorate, must not be null
 * @return a new ordered map
 * @throws NullPointerException if map is null
 * @since 4.0
 */
public static <K, V> OrderedMap<K, V> unmodifiableOrderedMap(final OrderedMap<? extends K, ? extends V> map) {
    if (map instanceof Unmodifiable) {
        @SuppressWarnings("unchecked") // safe to upcast
        final OrderedMap<K, V> tmpMap = (OrderedMap<K, V>) map;
        return tmpMap;
    }
    return new UnmodifiableOrderedMap<K, V>(map);
}
项目:HCFCore    文件:UnmodifiableOrderedMap.java   
/**
 * Factory method to create an unmodifiable sorted map.
 *
 * @param <K>  the key type
 * @param <V>  the value type
 * @param map  the map to decorate, must not be null
 * @return a new ordered map
 * @throws NullPointerException if map is null
 * @since 4.0
 */
public static <K, V> OrderedMap<K, V> unmodifiableOrderedMap(final OrderedMap<? extends K, ? extends V> map) {
    if (map instanceof Unmodifiable) {
        @SuppressWarnings("unchecked") // safe to upcast
        final OrderedMap<K, V> tmpMap = (OrderedMap<K, V>) map;
        return tmpMap;
    }
    return new UnmodifiableOrderedMap<K, V>(map);
}
项目:HCFCore    文件:AbstractOrderedMapDecorator.java   
/**
 * Constructor that wraps (not copies).
 *
 * @param map  the map to decorate, must not be null
 * @throws NullPointerException if the map is null
 */
public AbstractOrderedMapDecorator(final OrderedMap<K, V> map) {
    super(map);
}
项目:HCFCore    文件:AbstractOrderedMapDecorator.java   
/**
 * Gets the map being decorated.
 *
 * @return the decorated map
 */
@Override
protected OrderedMap<K, V> decorated() {
    return (OrderedMap<K, V>) super.decorated();
}