public Iterator < Object > valueIterator ( ) { final Iterator < String > iter = keyIterator ( ) ; return new Iterator < Object > ( ) { public boolean hasNext ( ) { return iter . hasNext ( ) ; } public Object next ( ) { String key = iter . next ( ) ; return get ( key ) ; } public void remove ( ) { throw new UnsupportedOperationException ( "remove() not supported for BeanMap" ) ; } } ; }
Convenience method for getting an iterator over the values .