Package org.apache.commons.collections.primitives

Examples of org.apache.commons.collections.primitives.ArrayShortList


    public ListIterator makeFullListIterator() {
        return ShortListIteratorListIterator.wrap(makeFullShortList().listIterator());
    }

    protected ShortList makeEmptyShortList() {
        return new ArrayShortList();
    }
View Full Code Here


    // ------------------------------------------------------------------------

    protected abstract ShortList makeUnmodifiableShortList();

    protected ShortList makeShortList() {
        ShortList list = new ArrayShortList();
        for(short i=0;i<10;i++) {
            list.add(i);
        }
        return list;
    }
View Full Code Here

    // framework
    // ------------------------------------------------------------------------
    protected abstract ShortIterator makeUnmodifiableShortIterator();

    protected ShortIterator makeShortIterator() {
        ShortList list = new ArrayShortList();
        for(short i=0;i<10;i++) {
            list.add(i);
        }
        return list.iterator();
    }
View Full Code Here

    // collections testing framework
    // ------------------------------------------------------------------------

    protected Object makeObject() {
        ShortList list = new ArrayShortList();
        for(int i=0;i<10;i++) {
            list.add((short)i);
        }
        return new ShortCollectionCollection(list);
    }
View Full Code Here

    public void testWrapNull() {
        assertNull(ShortCollectionCollection.wrap(null));
    }
   
    public void testWrapSerializable() {
        Collection collection = ShortCollectionCollection.wrap(new ArrayShortList());
        assertNotNull(collection);
        assertTrue(collection instanceof Serializable);
    }
View Full Code Here

    protected ShortIterator makeShortIterator() {
        return makeShortListIterator();
    }
   
    protected ShortListIterator makeShortListIterator() {
        ShortList list = new ArrayShortList();
        for(short i=0;i<10;i++) {
            list.add(i);
        }
        return list.listIterator();
    }
View Full Code Here

    public Iterator makeFullIterator() {
        return ShortIteratorIterator.wrap(makeFullShortList().iterator());
    }

    protected ShortList makeEmptyShortList() {
        return new ArrayShortList();
    }
View Full Code Here

    // collections testing framework
    // ------------------------------------------------------------------------

    protected List makeEmptyList() {
        return new ShortListList(new ArrayShortList());
    }
View Full Code Here

    public void testWrapNull() {
        assertNull(ShortListList.wrap(null));
    }
   
    public void testWrapSerializable() {
        List list = ShortListList.wrap(new ArrayShortList());
        assertNotNull(list);
        assertTrue(list instanceof Serializable);
    }
View Full Code Here

TOP

Related Classes of org.apache.commons.collections.primitives.ArrayShortList

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.