Package org.jgroups.util

Examples of org.jgroups.util.UnmodifiableVector.listIterator()


    @Test(expectedExceptions=UnsupportedOperationException.class)
    public static void testListIteration() {
        Vector v=new Vector(Arrays.asList("one", "two"));
        UnmodifiableVector uv=new UnmodifiableVector(v);
        Object el;
        for(ListIterator it=uv.listIterator(); it.hasNext();) {
            el=it.next();
            System.out.println(el);
        }

        for(ListIterator it=uv.listIterator(); it.hasNext();) {
View Full Code Here


        for(ListIterator it=uv.listIterator(); it.hasNext();) {
            el=it.next();
            System.out.println(el);
        }

        for(ListIterator it=uv.listIterator(); it.hasNext();) {
            el=it.next();
            it.remove();
        }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.