title: FIFO Map with limited elements
body: <p>I need a <code>HashMap</code> or simpy a <code>Map</code> with a fixed number of elements (<em>n</em>) working like a <strong>FIFO</strong> queue.</p>
  
  <p>So until the element number is &lt;= <em>n</em> new elements are simply put in the map.</p>
  
  <p>For element number > <em>n</em> the first inserted element is removed and the newest is put in the map.</p>
  
  <p>Is there something similar in Java, or do I have to implement it?</p>