Package org.apache.commons.collections.primitives

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


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

    protected Object makeObject() {
        FloatList list = new ArrayFloatList();
        for(int i=0;i<10;i++) {
            list.add((float)i);
        }
        return new FloatCollectionCollection(list);
    }
View Full Code Here


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

    protected FloatIterator makeFloatIterator() {
        return makeFloatListIterator();
    }
   
    protected FloatListIterator makeFloatListIterator() {
        FloatList list = new ArrayFloatList();
        for(float i=0;i<10;i++) {
            list.add(i);
        }
        return list.listIterator();
    }
View Full Code Here

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

    protected abstract FloatList makeUnmodifiableFloatList();

    protected FloatList makeFloatList() {
        FloatList list = new ArrayFloatList();
        for(float i=0;i<10;i++) {
            list.add(i);
        }
        return list;
    }
View Full Code Here

    // framework
    // ------------------------------------------------------------------------
    protected abstract FloatIterator makeUnmodifiableFloatIterator();

    protected FloatIterator makeFloatIterator() {
        FloatList list = new ArrayFloatList();
        for(float i=0;i<10;i++) {
            list.add(i);
        }
        return list.iterator();
    }
View Full Code Here

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

    protected List makeEmptyList() {
        return new FloatListList(new ArrayFloatList());
    }
View Full Code Here

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

    public Iterator makeFullIterator() {
        return FloatIteratorIterator.wrap(makeFullFloatList().iterator());
    }

    protected FloatList makeEmptyFloatList() {
        return new ArrayFloatList();
    }
View Full Code Here

    public ListIterator makeFullListIterator() {
        return FloatListIteratorListIterator.wrap(makeFullFloatList().listIterator());
    }

    protected FloatList makeEmptyFloatList() {
        return new ArrayFloatList();
    }
View Full Code Here

TOP

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

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.