title: How to Implement Map with Queue of objects
body: <p>I am little confused how to implement the following output,</p>
  
  <pre><code>{ 
       "finalOutput":{["test":{[],[],[],[],[],[],[],[],[],[]},
       "test1":{[],[],[]....[]},
       "test2":{[],[]....[]}]}
  }
  </code></pre>
  
  <p>.</p>
  
  <p>For this output, One Key should have 10 objects with Queue concepts.
  For example key as <code>college : {[],[],[],[],[],[],[]..}</code>. Each key should not be more than 10 values. So i am thinking to implement with <code>ConcurrentLinkedDeque&lt;Object&gt;</code>. i dont know how to implement. </p>
  
  <p>i am thinking with <code>MultivaluedMap</code> but i need to check each key has 10 or less objects. should not be more than 10 so need to check with FIFO policy.(If more than 10 need to remove first and insert the values.)</p>
  
  <p>Can any one please suggest me how to implement. if any one has sample please help me. </p>