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

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


   
    // collections testing framework: inherited
    // ------------------------------------------------------------------------

    protected List makeEmptyList() {
        return new DoubleListList(makeEmptyDoubleList());
    }
View Full Code Here


        assertTrue("Unwrapped, empty List should not be equal to empty DoubleList.",!ilist.equals(list));
        assertTrue("Unwrapped, empty DoubleList should not be equal to empty List.",!list.equals(ilist));
       
        assertEquals(new ListDoubleList(list),ilist);
        assertEquals(ilist,new ListDoubleList(list));
        assertEquals(new DoubleListList(ilist),list);
        assertEquals(list,new DoubleListList(ilist));
       
        ilist.add((double)1);
        list.add(new Double((double)1));

        assertTrue("Unwrapped, non-empty List is not equal to non-empty DoubleList.",!ilist.equals(list));
        assertTrue("Unwrapped, non-empty DoubleList is not equal to non-empty List.",!list.equals(ilist));
       
        assertEquals(new ListDoubleList(list),ilist);
        assertEquals(ilist,new ListDoubleList(list));
        assertEquals(new DoubleListList(ilist),list);
        assertEquals(list,new DoubleListList(ilist));
               
        ilist.add((double)1); ilist.add((double)2); ilist.add((double)3); ilist.add((double)5); ilist.add((double)8);
        list.add(new Double((double)1)); list.add(new Double((double)2)); list.add(new Double((double)3)); list.add(new Double((double)5)); list.add(new Double((double)8));

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

TOP

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

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.