• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Horizontal and vertical timeline functionality in java

 
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a way or methodology in Java to execute certain set horizontally and execute a process as a vertical time line and then again continue execution horizontally? For example: this is my map

map with {String, list of objects}
map.put("1", {obj1, obj2, obj3})
map.put("2", {obj})
map.put("3", {obj})
so now i need start creating xmls for the above list. obj1,obj2 should be executed then, halt execute obj of 2nd key and then continue obj3 and then the elements from key 3.
 
Marshal
Posts: 69411
276
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. You could program the app to do exactly what you said. In fact you can maintain a reference to an Iterator in the first List so you can go back and take off where you left off.
But first explain more. Are you processing all the objects in that particular order? Would the order change depending on the attributes of any of the values? How would you iterate the set of keys? Would you put the keys into a sorted set and iterate that?
 
They weren't very bright, but they were very, very big. Ad contrast:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic