title: For loop operation on fewer items
body: <p>For example, To select only audios from list of files which has audio, video, image etc., I'm using following code. </p>
  
  <pre><code>private void selectAllAudio() {
      for(Entity entity: entities){
          if(entity.getItemType() == ItemType.Audio){
              entity.setSelected(true);
          }
      }
  }
  </code></pre>
  
  <p>The above code will loop all 1000's of items where only 100 items are audio. So I just want to know is there any better way to select all audios instead of looping all files. </p>