@ CheckReturnValue public AccountManager setName ( String name , String currentPassword ) { Checks . notBlank ( name , "Name" ) ; Checks . check ( name . length ( ) >= 2 && name . length ( ) <= 32 , "Name must be between 2-32 characters long" ) ; this . currentPassword = currentPassword ; this . name = name ; set |= NAME ; return this ; }
Sets the username for the currently logged in account