title: trying to store java objects in contiguous memory
body: <p>I am trying to implement a cache-like collection of objects.  The purpose is to have fast access to these objects through locality in memory since I'll likely be reading multiple objects at a time.  I currently just store objects in a java collections object like vector or deque.  But I do not believe this makes use of contiguous memory.</p>
  
  <p>I know this can be done in C, but can it be done in Java?  These objects may be of varying lengths (since they may contain strings).  Is there a way to allocate contiguous memory through Java?  Is there a Java collections object that would?</p>
  
  <p>Please let me know.</p>
  
  <p>Thanks,
  jbu</p>