Package org.apache.commons.collections.primitives

Examples of org.apache.commons.collections.primitives.LongList.subList()


        assertListNotModifiable(makeUnmodifiableLongList());
    }

    public final void testSublistNotModifiable() throws Exception {
        LongList list = makeUnmodifiableLongList();
        assertListNotModifiable(list.subList(0,list.size()-2));
    }
   
    public final void testIteratorNotModifiable() throws Exception {
        LongList list = makeUnmodifiableLongList();
        assertIteratorNotModifiable(list.iterator());
View Full Code Here


    }
   
    public final void testIteratorNotModifiable() throws Exception {
        LongList list = makeUnmodifiableLongList();
        assertIteratorNotModifiable(list.iterator());
        assertIteratorNotModifiable(list.subList(0,list.size()-2).iterator());
    }
   
    public final void testListIteratorNotModifiable() throws Exception {
        LongList list = makeUnmodifiableLongList();
        assertListIteratorNotModifiable(list.listIterator());
View Full Code Here

    }
   
    public final void testListIteratorNotModifiable() throws Exception {
        LongList list = makeUnmodifiableLongList();
        assertListIteratorNotModifiable(list.listIterator());
        assertListIteratorNotModifiable(list.subList(0,list.size()-2).listIterator());
        assertListIteratorNotModifiable(list.listIterator(1));
        assertListIteratorNotModifiable(list.subList(0,list.size()-2).listIterator(1));
    }

    // util
View Full Code Here

    public final void testListIteratorNotModifiable() throws Exception {
        LongList list = makeUnmodifiableLongList();
        assertListIteratorNotModifiable(list.listIterator());
        assertListIteratorNotModifiable(list.subList(0,list.size()-2).listIterator());
        assertListIteratorNotModifiable(list.listIterator(1));
        assertListIteratorNotModifiable(list.subList(0,list.size()-2).listIterator(1));
    }

    // util
    // ------------------------------------------------------------------------
   
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.