Package org.apache.commons.collections.primitives

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


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

    protected Object makeObject() {
        ByteList list = new ArrayByteList();
        for(int i=0;i<10;i++) {
            list.add((byte)i);
        }
        return new ByteCollectionCollection(list);
    }
View Full Code Here


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

TOP

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

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.