public final Collection < V > values ( ) { return new AbstractCollection < V > ( ) { public Iterator < V > iterator ( ) { final Iterator < Map . Entry < K , V > > ite = entryIterator ( ) ; return new Iterator < V > ( ) { public boolean hasNext ( ) { return ite . hasNext ( ) ; } public void remove ( ) { ite . remove ( ) ; } public V next ( ) { return ite . next ( ) . getValue ( ) ; } } ; } public int size ( ) { return size ; } } ; }
Returns an unmodifiable collection view of the values from this map .