public void setName ( String name ) { // Do nothing if the name hasn't changed. if ( name != null && name . equals ( this . name ) ) { return ; } this . name = name ; Roster packet = new Roster ( ) ; packet . setType ( IQ . Type . set ) ; packet . addItem ( new JID ( user ) , name , ask , subscription , getGroupNames ( ) ) ; connection . sendPacket ( packet ) ; }
Sets the name associated with this entry .