Package org.apache.commons.collections.primitives.adapters

Examples of org.apache.commons.collections.primitives.adapters.ListLongList


        List list = new ArrayList();
       
        assertTrue("Unwrapped, empty List should not be equal to empty LongList.",!ilist.equals(list));
        assertTrue("Unwrapped, empty LongList should not be equal to empty List.",!list.equals(ilist));
       
        assertEquals(new ListLongList(list),ilist);
        assertEquals(ilist,new ListLongList(list));
        assertEquals(new LongListList(ilist),list);
        assertEquals(list,new LongListList(ilist));
       
        ilist.add((long)1);
        list.add(new Long(1));

        assertTrue("Unwrapped, non-empty List is not equal to non-empty LongList.",!ilist.equals(list));
        assertTrue("Unwrapped, non-empty LongList is not equal to non-empty List.",!list.equals(ilist));
       
        assertEquals(new ListLongList(list),ilist);
        assertEquals(ilist,new ListLongList(list));
        assertEquals(new LongListList(ilist),list);
        assertEquals(list,new LongListList(ilist));
               
        ilist.add(1); ilist.add(2); ilist.add(3); ilist.add(5); ilist.add(8);
        list.add(new Long(1)); list.add(new Long(2)); list.add(new Long(3)); list.add(new Long(5)); list.add(new Long(8));

        assertTrue("Unwrapped, non-empty List is not equal to non-empty LongList.",!ilist.equals(list));
        assertTrue("Unwrapped, non-empty LongList is not equal to non-empty List.",!list.equals(ilist));
       
        assertEquals(new ListLongList(list),ilist);
        assertEquals(ilist,new ListLongList(list));
        assertEquals(new LongListList(ilist),list);
        assertEquals(list,new LongListList(ilist));
       
    }
View Full Code Here

TOP

Related Classes of org.apache.commons.collections.primitives.adapters.ListLongList

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.