corrected some javadoc and simplified java calls

Yes the for each loop will allocate memory for the iterator, I think to avoid unnecesary allocation and optimize the loop the code should be:
```java
int typesLength = componentTypes.length;
for(int i=0; i<typesLength; i++){
    bits.set(ComponentType.getIndexFor(componentTypes[i]));	
}
```

Based on:
[Avoiding garbage collection in android] (http://www.devahead.com/blog/2011/12/coding-for-performance-and-avoiding-garbage-collection-in-android/)
[This question/answer of SO](http://stackoverflow.com/a/11490318)