Package org.apache.commons.collections.primitives

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


    public void testWrapNull() {
        assertNull(UnmodifiableFloatList.wrap(null));
    }

    public void testWrapUnmodifiableFloatList() {
        FloatList list = makeUnmodifiableFloatList();
        assertSame(list,UnmodifiableFloatList.wrap(list));
    }
View Full Code Here


        FloatList list = makeUnmodifiableFloatList();
        assertSame(list,UnmodifiableFloatList.wrap(list));
    }

    public void testWrapSerializableFloatList() {
        FloatList list = makeFloatList();
        assertTrue(list instanceof Serializable);
        assertTrue(UnmodifiableFloatList.wrap(list) instanceof Serializable);
    }
View Full Code Here

        assertTrue(list instanceof Serializable);
        assertTrue(UnmodifiableFloatList.wrap(list) instanceof Serializable);
    }

    public void testWrapNonSerializableFloatList() {
        FloatList list = makeFloatList();
        FloatList ns = list.subList(0,list.size());
        assertTrue(!(ns instanceof Serializable));
        assertTrue(!(UnmodifiableFloatList.wrap(ns) instanceof Serializable));
    }
View Full Code Here

    protected FloatList makeEmptyFloatList() {
        return new ArrayFloatList();
    }
   
    protected FloatList makeFullFloatList() {
        FloatList list = makeEmptyFloatList();
        float[] elts = getFullElements();
        for(int i=0;i<elts.length;i++) {
            list.add((float)elts[i]);
        }
        return list;
    }
View Full Code Here

    protected FloatList makeEmptyFloatList() {
        return new ArrayFloatList();
    }
   
    protected FloatList makeFullFloatList() {
        FloatList list = makeEmptyFloatList();
        float[] elts = getFullElements();
        for(int i=0;i<elts.length;i++) {
            list.add((float)elts[i]);
        }
        return list;
    }
View Full Code Here

TOP

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

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.