Package org.evolizer.core.util.collections

Examples of org.evolizer.core.util.collections.FlatteningIterator


    List<String> secondLevel2 = new LinkedList<String>();
    secondLevel2.add("hi");
    secondLevel2.add("you");
    topLevel.add(secondLevel2);
   
    FlatteningIterator iter = new FlatteningIterator(topLevel, "b");
    assertEquals("a", iter.next());
    assertEquals(new Integer(10), iter.next());
    assertEquals("hi", iter.next());
    assertEquals("you", iter.next());
    assertEquals("b", iter.next());
    assertFalse(iter.hasNext());
   
    iter.next(); // should throw a NoSuchElementException
  }
View Full Code Here

TOP

Related Classes of org.evolizer.core.util.collections.FlatteningIterator

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.