public User getUser ( String userName ) { User result = null ; for ( User item : getUsersList ( ) ) { if ( item . getName ( ) . equals ( userName ) ) { result = item ; } } return result ; }
Get the particular User instance if the user can be found . Null otherwise .